diff --git a/admin/index.php b/admin/index.php index 213977e506..abc4984047 100755 --- a/admin/index.php +++ b/admin/index.php @@ -11,7 +11,6 @@ * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ - /* $Id$ */ $GLOBALS['phpgw_info'] = array(); @@ -69,7 +68,7 @@ $GLOBALS['phpgw']->common->image($appname,'navbar','',True) ); - while(list($text,$url) = each($file)) + while(is_array($file) && list($text,$url) = each($file)) { section_item($url,lang($text)); } diff --git a/preferences/index.php b/preferences/index.php index c9ff94e920..a23296f3e2 100755 --- a/preferences/index.php +++ b/preferences/index.php @@ -121,7 +121,7 @@ { section_start($appname,$GLOBALS['phpgw']->common->image($appname,'navbar','',True)); - while(list($text,$url) = each($file)) + while(is_array($file) && list($text,$url) = each($file)) { section_item($url,lang($text)); }