| @@ 123-126 (lines=4) @@ | ||
| 120 | $result = sql_select("id_auteur, nom", "spip_auteurs"); |
|
| 121 | $table_auteurs = array(); |
|
| 122 | $table_ids = array(); |
|
| 123 | while ($row = sql_fetch($result)) { |
|
| 124 | $table_auteurs[] = $row["nom"]; |
|
| 125 | $table_ids[] = $row["id_auteur"]; |
|
| 126 | } |
|
| 127 | return mots_ressemblants($cherche_auteur, $table_auteurs, $table_ids); |
|
| 128 | } |
|
| 129 | ||
| @@ 95-98 (lines=4) @@ | ||
| 92 | $query = sql_select("id_auteur, nom", "spip_auteurs", "messagerie<>'non' AND pass<>'' AND login<>'' AND id_auteur<>" . sql_quote($id_auteur)); |
|
| 93 | $table_auteurs = array(); |
|
| 94 | $table_ids = array(); |
|
| 95 | while ($row = sql_fetch($query)) { |
|
| 96 | $table_auteurs[] = $row['nom']; |
|
| 97 | $table_ids[] = $row['id_auteur']; |
|
| 98 | } |
|
| 99 | $res = mots_ressemblants($cherche_auteur, $table_auteurs, $table_ids); |
|
| 100 | $n = count($res); |
|
| 101 | ||
| @@ 72-75 (lines=4) @@ | ||
| 69 | $query = sql_select("id_auteur, nom", "spip_auteurs", "messagerie<>'non' AND id_auteur<>'$connect_id_auteur' AND pass<>'' AND login<>''"); |
|
| 70 | $table_auteurs = array(); |
|
| 71 | $table_ids = array(); |
|
| 72 | while ($row = sql_fetch($query)) { |
|
| 73 | $table_auteurs[] = $row['nom']; |
|
| 74 | $table_ids[] = $row['id_auteur']; |
|
| 75 | } |
|
| 76 | $resultat = mots_ressemblants($cherche_auteur, $table_auteurs, $table_ids); |
|
| 77 | if (!$resultat) { |
|
| 78 | return '<b>' . _T('info_recherche_auteur_zero', array('cherche_auteur' => $cherche_auteur))."</b><br />"; |
|