Add additional check to make sure appname is not empty

This commit is contained in:
Miles Lott 2001-06-08 14:46:18 +00:00
parent d1b4082ebd
commit dbc7f00455

View File

@ -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 '<br>including: ' . $f;
include($f);