"better handle the situation of an empty / dummy header in rpm files"

This commit is contained in:
Ralf Becker 2008-10-13 06:03:32 +00:00
parent 82bbc1238f
commit 2030c6a24a

View File

@ -66,7 +66,7 @@ switch($GLOBALS['egw_info']['setup']['stage']['header'])
break; break;
} }
if (!file_exists('../header.inc.php') || !is_readable('../header.inc.php')) if (!file_exists('../header.inc.php') || !is_readable('../header.inc.php') || !defined('EGW_SERVER_ROOT') || EGW_SERVER_ROOT == '..')
{ {
$GLOBALS['egw_setup']->header->defaults(); $GLOBALS['egw_setup']->header->defaults();
} }