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

This commit is contained in:
Ralf Becker 2011-06-07 07:02:08 +00:00
parent 9dfdabe1a3
commit 2add4fe910

View File

@ -840,7 +840,7 @@ abstract class egw_framework
$d = dir(EGW_SERVER_ROOT);
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'))
{
include($f);