diff --git a/phpgwapi/inc/class.hooks.inc.php b/phpgwapi/inc/class.hooks.inc.php index abbcfd1535..e7ae782705 100644 --- a/phpgwapi/inc/class.hooks.inc.php +++ b/phpgwapi/inc/class.hooks.inc.php @@ -94,6 +94,7 @@ { $apps = $GLOBALS['phpgw_info']['user']['apps']; } + settype($apps,'array'); foreach($apps as $app) { $appname = $app['name'];