no need to scan non-directories - gives only warnings ;-)

This commit is contained in:
Ralf Becker 2011-06-07 07:03:21 +00:00
parent d302dabfa3
commit e532c973d3

View File

@ -836,7 +836,7 @@ abstract class egw_framework
$d = dir(EGW_SERVER_ROOT); $d = dir(EGW_SERVER_ROOT);
while (($entry=$d->read())) while (($entry=$d->read()))
{ {
if ($entry != '..' && !isset($GLOBALS['egw_info']['apps'][$entry]) && if ($entry != '..' && !isset($GLOBALS['egw_info']['apps'][$entry]) && is_dir(EGW_SERVER_ROOT.'/'.$entry) &&
file_exists($f = EGW_SERVER_ROOT . '/' . $entry .'/setup/setup.inc.php')) file_exists($f = EGW_SERVER_ROOT . '/' . $entry .'/setup/setup.inc.php'))
{ {
include($f); include($f);