mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:04:53 +01:00
Add additional check to make sure appname is not empty
This commit is contained in:
parent
d1b4082ebd
commit
dbc7f00455
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user