From dbc7f004555294154044c5b00ac06563aa358e68 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Fri, 8 Jun 2001 14:46:18 +0000 Subject: [PATCH] Add additional check to make sure appname is not empty --- 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 3c35aba001..bf85e0fc84 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -929,7 +929,7 @@ { $f = PHPGW_SERVER_ROOT . '/' . $appname . '/inc/hook_' . $location . '.inc.php'; if (file_exists($f) && - ($phpgw_info['user']['apps'][$appname]) || ($location == 'preferences')) + ( $phpgw_info['user']['apps'][$appname] || ( ($location == 'preferences') && $appname) ) ) { //echo '
including: ' . $f; include($f);