Code Duplication    Length = 3-3 lines in 2 locations

ecrire/action/editer_article.php 1 location

@@ 426-428 (lines=3) @@
423
424
		$langue = $row_rub['lang'];
425
		$champs['id_secteur'] = $row_rub['id_secteur'];
426
		if (sql_fetsel('1', 'spip_articles',
427
			"id_article=" . intval($id_article) . " AND langue_choisie<>'oui' AND lang<>" . sql_quote($langue))) {
428
			$champs['lang'] = $langue;
429
		}
430
	}
431

ecrire/action/editer_objet.php 1 location

@@ 475-477 (lines=3) @@
472
		}
473
474
		if (isset($desc['field']['lang']) and isset($desc['field']['langue_choisie'])) {
475
			if (sql_fetsel('1', $table_sql,
476
				id_table_objet($objet) . "=" . intval($id) . " AND langue_choisie<>'oui' AND lang<>" . sql_quote($langue))) {
477
				$champs['lang'] = $langue;
478
			}
479
		}
480
	}