From c4318f11af8561fb1f0ec394302ec3e200f3e9fd Mon Sep 17 00:00:00 2001 From: ceb Date: Mon, 4 Nov 2002 00:55:07 +0000 Subject: [PATCH] update prefs to use lang() instead --- admin/index.php | 3 +-- preferences/index.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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)); }