mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-28 08:49:00 +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';
|
$f = PHPGW_SERVER_ROOT . '/' . $appname . '/inc/hook_' . $location . '.inc.php';
|
||||||
if (file_exists($f) &&
|
if (file_exists($f) &&
|
||||||
($phpgw_info['user']['apps'][$appname]) || ($location == 'preferences'))
|
( $phpgw_info['user']['apps'][$appname] || ( ($location == 'preferences') && $appname) ) )
|
||||||
{
|
{
|
||||||
//echo '<br>including: ' . $f;
|
//echo '<br>including: ' . $f;
|
||||||
include($f);
|
include($f);
|
||||||
|
Loading…
Reference in New Issue
Block a user