update prefs to use lang() instead

This commit is contained in:
ceb 2002-11-04 00:55:07 +00:00
parent 0f50db2558
commit c4318f11af
2 changed files with 2 additions and 3 deletions

View File

@ -11,7 +11,6 @@
* Free Software Foundation; either version 2 of the License, or (at your * * Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. * * option) any later version. *
\**************************************************************************/ \**************************************************************************/
/* $Id$ */ /* $Id$ */
$GLOBALS['phpgw_info'] = array(); $GLOBALS['phpgw_info'] = array();
@ -69,7 +68,7 @@
$GLOBALS['phpgw']->common->image($appname,'navbar','',True) $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)); section_item($url,lang($text));
} }

View File

@ -121,7 +121,7 @@
{ {
section_start($appname,$GLOBALS['phpgw']->common->image($appname,'navbar','',True)); 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)); section_item($url,lang($text));
} }