X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2FBarrel%2FMenu.php;h=770328885ea1b5a4f250ddba99286117b5087553;hb=a8daf9136f2d4ba13a54d5122e2c3a9e65dc8c34;hp=e5279c9d3154bfa78bc2f866a36ff07861b2bd1e;hpb=51dda5825f66ced0a744d9e49159cedbe0fd5771;p=diogenes.git diff --git a/include/Barrel/Menu.php b/include/Barrel/Menu.php index e5279c9..7703288 100644 --- a/include/Barrel/Menu.php +++ b/include/Barrel/Menu.php @@ -58,7 +58,7 @@ class Diogenes_Barrel_Menu /* renumber the other menu entries so that they are between 1 and the number of entries */ $res = $this->dbh->query("SELECT MID FROM {$this->table_menu} WHERE MIDpere=$parent ORDER BY ordre"); $i = 0; - while (list($MIDtoorder) = mysql_fetch_array($res)) { + while (list($MIDtoorder) = mysql_fetch_row($res)) { $i++; $this->dbh->query("UPDATE {$this->table_menu} SET ordre=$i WHERE MID=$MIDtoorder"); }