CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Branch:         Version-0_9_16-branch
Changes by:     Dave Hall <skwashd>     07/04/25 05:54:14

Modified files:
        inc            : class.hooks.inc.php 

Log message:
        check before foreach

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.hooks.inc.php?cvsroot=phpgwapi&only_with_tag=Version-0_9_16-branch&r1=1.10.4.7&r2=1.10.4.8

Patches:
Index: class.hooks.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/inc/class.hooks.inc.php,v
retrieving revision 1.10.4.7
retrieving revision 1.10.4.8
diff -u -b -r1.10.4.7 -r1.10.4.8
--- class.hooks.inc.php 10 Feb 2004 13:51:18 -0000      1.10.4.7
+++ class.hooks.inc.php 25 Apr 2007 05:54:14 -0000      1.10.4.8
@@ -6,7 +6,7 @@
        * @license http://www.fsf.org/licenses/lgpl.html GNU Lesser General 
Public License
        * @package phpgwapi
        * @subpackage application
-       * @version $Id: class.hooks.inc.php,v 1.10.4.7 2004/02/10 13:51:18 ceb 
Exp $
+       * @version $Id: class.hooks.inc.php,v 1.10.4.8 2007/04/25 05:54:14 
skwashd Exp $
        */
 
        /**
@@ -77,6 +77,12 @@
                        {
                                $apps = $GLOBALS['phpgw_info']['user']['apps'];
                        }
+
+                       if ( !is_array($apps) )
+                       {
+                               $apps = array();
+                       }
+
                        foreach($apps as $app)
                        {
                                $appname = $app['name'];


_______________________________________________
phpGroupWare-cvs mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/phpgroupware-cvs

Reply via email to