mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
patch for error when array is returned
This commit is contained in:
parent
9c20cc177e
commit
00c39efa78
@ -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);}
|
||||
|
Loading…
Reference in New Issue
Block a user