Code Duplication    Length = 4-6 lines in 2 locations

ecrire/inc/editer_mots.php 1 location

@@ 383-388 (lines=6) @@
380
381
		$q = sql_allfetsel("id_mot, type, titre", "spip_mots", "id_groupe =$id_groupe " . $cond_mots_vus, "", "titre");
382
383
		foreach($q as $k => $r) {
384
			$q[$k] = "<option value='" .$r['id_mot'] .
385
				"'>&nbsp;&nbsp;&nbsp;" .
386
				textebrut(typo($r['titre'])) .
387
				"</option>";
388
		}
389
		$res = "<select name='nouv_mot' id='nouv_mot$id_groupe' size='1' style='$style' onchange=\"$jscript1\">"
390
		. "\n<option value='x' style='font-variant: small-caps;'>"
391
		. $titre

ecrire/inc/forum.php 1 location

@@ 592-595 (lines=4) @@
589
590
	$mots = sql_allfetsel("titre, type", "spip_mots AS M LEFT JOIN spip_mots_forum AS L ON L.id_mot=M.id_mot",  "L.id_forum=" . intval($id_forum));
591
592
	foreach ($mots as $k => $r) {
593
		$mots[$k] = propre('<b>' . $r['type'] . ' :</b>') . ' '
594
		  . propre($r['titre']);
595
	}
596
597
	if (!$mots) return '';
598
	return ("\n<ul><li>" . join("</li>\n<li>", $mots) . "</li></ul>\n");