[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc class.hooks.inc.php [Version-0_9_16-bran
From: |
Dave Hall |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc class.hooks.inc.php [Version-0_9_16-branch] |
Date: |
Wed, 25 Apr 2007 05:54:14 +0000 |
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'];
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/inc class.hooks.inc.php [Version-0_9_16-branch],
Dave Hall <=