[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] preferences index.php
From: |
Dave Hall |
Subject: |
[Phpgroupware-cvs] preferences index.php |
Date: |
Tue, 21 Feb 2006 01:05:10 +0000 |
CVSROOT: /cvsroot/phpgroupware
Module name: preferences
Branch:
Changes by: Dave Hall <address@hidden> 06/02/21 01:05:09
Modified files:
. : index.php
Log message:
fix for each error and use correct types
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/preferences/index.php.diff?tr1=1.33&tr2=1.34&r1=text&r2=text
Patches:
Index: preferences/index.php
diff -u preferences/index.php:1.33 preferences/index.php:1.34
--- preferences/index.php:1.33 Sun Apr 17 15:14:31 2005
+++ preferences/index.php Tue Feb 21 01:05:09 2006
@@ -6,7 +6,7 @@
* @copyright Copyright (C) 2000-2005 Free Software Foundation, Inc.
http://www.fsf.org/
* @license http://www.gnu.org/licenses/gpl.html GNU General Public
License
* @package preferences
- * @version $Id: index.php,v 1.33 2005/04/17 15:14:31 powerstat Exp $
+ * @version $Id: index.php,v 1.34 2006/02/21 01:05:09 skwashd Exp $
*/
$phpgw_info = array();
@@ -141,19 +141,23 @@
* @param $file
* @param $file2
*/
- function display_section($appname,$file,$file2=False)
+ function display_section($appname, $file, $file2 = array() )
{
- if ($file2)
+ if ( is_array($file2) && count($file2) )
{
$file = $file2;
}
-
section_start($appname,$GLOBALS['phpgw']->common->image($appname,Array('navbar',$appname)));
+
- while(list($text,$url) = each($file))
+ if ( is_array($file) )
{
- section_item($url,lang($text));
+
section_start($appname,$GLOBALS['phpgw']->common->image($appname,Array('navbar',$appname)));
+ foreach ( $file as $text => $url )
+ {
+ section_item($url,lang($text));
+ }
+ section_end();
}
- section_end();
}
$GLOBALS['phpgw']->hooks->process('preferences',array('preferences'));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] preferences index.php,
Dave Hall <=