From: Jeremy Laine Date: Mon, 17 Jul 2006 08:11:58 +0000 (+0000) Subject: fix a warning when a barrel's menu is empty X-Git-Url: http://git.polytechnique.org/?p=diogenes.git;a=commitdiff_plain;h=a9bcbb8205f35f215c20acf7aba953ae6a598d15 fix a warning when a barrel's menu is empty --- diff --git a/ChangeLog b/ChangeLog index 1d1bafd..b369111 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +Diogenes 0.9.19.1 + * fixed - fix a warning when a barrel's menu is empty + Diogenes 0.9.19 * fixed - fix handling of filter plugins without arguments * improved - reduce database calls used to build a page's menu diff --git a/include/diogenes.barrel.inc.php b/include/diogenes.barrel.inc.php index e9dbbe4..3893284 100644 --- a/include/diogenes.barrel.inc.php +++ b/include/diogenes.barrel.inc.php @@ -428,6 +428,7 @@ class DiogenesBarrel extends DiogenesPage function menuRead() { $menu = array(); + $menu[0]['children'] = array(); $res = $this->dbh->query("select MID,MIDpere,title,link,PID from {$this->table_menu} order by ordre"); while (list($mid, $parent, $title, $link, $pid) = mysql_fetch_row($res)) {