Code Duplication    Length = 5-6 lines in 2 locations

ecrire/public/criteres.php 2 locations

@@ 577-581 (lines=5) @@
574
		$t = $crit->param[0];
575
		if ($t[0]->type == 'texte') {
576
			$t = $t[0]->texte;
577
			if (preg_match("/^(.*)\.(.*)$/", $t, $r)) {
578
				$t = table_objet_sql($r[1]);
579
				$t = array_search($t, $boucles[$idb]->from);
580
				if ($t) {
581
					$t .= '.' . $r[2];
582
				}
583
			}
584
		} else {
@@ 817-822 (lines=6) @@
814
			}
815
		}
816
817
		if (preg_match('/^\'([^"]*)\'$/', $order, $m)) {
818
			$t = $m[1];
819
			if (strpos($t, '.') and !in_array($t, $boucle->select)) {
820
				$boucle->select[] = $t;
821
			}
822
		} else {
823
			$sens = '';
824
		}
825