Code Duplication    Length = 2-3 lines in 2 locations

ecrire/public/criteres.php 1 location

@@ 592-593 (lines=2) @@
589
	}
590
	if ($t) {
591
		$boucles[$idb]->group[] = $t;
592
		if (!in_array($t, $boucles[$idb]->select)) {
593
			$boucles[$idb]->select[] = $t;
594
		}
595
	} else {
596
		return (array('zbug_critere_inconnu', array('critere' => $crit->op . ' ?')));

ecrire/public/references.php 1 location

@@ 152-154 (lines=3) @@
149
		// $c = le nom du champ demandé
150
		list($t, $c) = index_tables_en_pile($idb, $nom_champ, $boucles, $joker);
151
		if ($t) {
152
			if ($select and !in_array($t, $boucles[$idb]->select)) {
153
				$boucles[$idb]->select[] = $t;
154
			}
155
			$champ = '$Pile[$SP' . ($i ? "-$i" : "") . '][\'' . $c . '\']';
156
			if (!$joker) {
157
				return index_compose($conditionnel, $champ);