Code Duplication    Length = 3-3 lines in 2 locations

ecrire/public/criteres.php 1 location

@@ 599-601 (lines=3) @@
596
	}
597
	if ($t) {
598
		$boucles[$idb]->group[] = $t;
599
		if (!in_array($t, $boucles[$idb]->select)) {
600
			$boucles[$idb]->select[] = $t;
601
		}
602
	} else {
603
		return (array('zbug_critere_inconnu', array('critere' => $crit->op . ' ?')));
604
	}

ecrire/public/references.php 1 location

@@ 123-125 (lines=3) @@
120
		// $c = le nom du champ demandé
121
		list($t, $c) = index_tables_en_pile($idb, $nom_champ, $boucles, $joker);
122
		if ($t) {
123
			if ($select and !in_array($t, $boucles[$idb]->select)) {
124
				$boucles[$idb]->select[] = $t;
125
			}
126
			$champ = '$Pile[$SP' . ($i ? "-$i" : "") . '][\'' . $c . '\']';
127
			if (!$joker) {
128
				return index_compose($conditionnel, $champ);