forked from extern/egroupware
patch for error when array is returned
This commit is contained in:
parent
9c20cc177e
commit
00c39efa78
@ -607,7 +607,7 @@
|
|||||||
/* Then add the rest */
|
/* Then add the rest */
|
||||||
reset ($phpgw_info["user"]["app_perms"]);
|
reset ($phpgw_info["user"]["app_perms"]);
|
||||||
while (list (, $appname) = each ($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"];
|
$f = $phpgw_info["server"]["server_root"] . "/" . $appname . "/inc/hook_".$phpgw_info["flags"]["currentapp"];
|
||||||
if ($location != ""){$f .= "_".$location.".inc.php";}else{$f .= ".inc.php"; }
|
if ($location != ""){$f .= "_".$location.".inc.php";}else{$f .= ".inc.php"; }
|
||||||
if (file_exists($f)) {include($f);}
|
if (file_exists($f)) {include($f);}
|
||||||
|
Loading…
Reference in New Issue
Block a user