Code Duplication    Length = 4-4 lines in 2 locations

ecrire/public/criteres.php 2 locations

@@ 194-197 (lines=4) @@
191
192
	$boucle = &$boucles[$idb];
193
194
	if (isset($crit->param[0]))
195
		$quoi = calculer_liste($crit->param[0], array(), $boucles, $boucles[$idb]->id_parent);
196
	else
197
		$quoi = '@$Pile[0]["recherche"]';
198
199
	// indiquer si l'on est dans une boucle forum avec le critère {plat} ou {tout}
200
	$plat = "false" ;
@@ 512-515 (lines=4) @@
509
	  {
510
	  	$order = "' DESC'";
511
	// Classement par ordre inverse fonction eventuelle de #ENV{...}
512
		if (isset($crit->param[0])){
513
			$critere = calculer_liste($crit->param[0], array(), $boucles, $boucles[$idb]->id_parent);
514
			$order = "(($critere)?' DESC':'')";
515
		}
516
517
		$n = count($boucle->order);
518
		if (!$n) {