Code Duplication    Length = 2-3 lines in 2 locations

ecrire/public/criteres.php 1 location

@@ 346-347 (lines=2) @@
343
	}
344
	if ($t) {
345
		$boucles[$idb]->group[] = $t; 
346
		if (!in_array($t, $boucles[$idb]->select))
347
		    $boucles[$idb]->select[] = $t;
348
	} else 
349
		return (array('zbug_critere_inconnu', array('critere' => $crit->op . ' ?')));
350
}

ecrire/public/references.php 1 location

@@ 47-49 (lines=3) @@
44
		list ($t, $c) = index_tables_en_pile($idb, $nom_champ, $boucles);
45
46
		if ($t) {
47
		  if (!in_array($t, $boucles[$idb]->select)) {
48
		    $boucles[$idb]->select[] = $t;
49
		  }
50
		  return '$Pile[$SP' . ($i ? "-$i" : "") . '][\'' . $c . '\']';
51
		}
52
#		spip_log("On remonte vers $i");