From 00c39efa783f47fa29898e93511309803a4ae92f Mon Sep 17 00:00:00 2001 From: seek3r Date: Sun, 21 Jan 2001 08:22:35 +0000 Subject: [PATCH] patch for error when array is returned --- phpgwapi/inc/class.common.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index cc9a7ab03b..678685787e 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -607,7 +607,7 @@ /* Then add the rest */ reset ($phpgw_info["user"]["app_perms"]); while (list (, $appname) = each ($phpgw_info["user"]["app_perms"])){ - if ($appname != "" && $completed_hooks[$appname] != True){ + if (gettype($appname) != "array" && $appname != "" && $completed_hooks[$appname] != True){ $f = $phpgw_info["server"]["server_root"] . "/" . $appname . "/inc/hook_".$phpgw_info["flags"]["currentapp"]; if ($location != ""){$f .= "_".$location.".inc.php";}else{$f .= ".inc.php"; } if (file_exists($f)) {include($f);}