Possible fix for problems with bad php.ini settings.

This commit is contained in:
skeeter 2001-11-21 12:07:58 +00:00
parent 11563491f8
commit 509b88901b

View File

@ -23,12 +23,12 @@
$d = dir(PHPGW_SERVER_ROOT); $d = dir(PHPGW_SERVER_ROOT);
while($entry=$d->read()) while($entry=$d->read())
{ {
if (!ereg('setup',$entry)) if (!ereg('setup',$entry) && is_dir(PHPGW_SERVER_ROOT.'/'.$entry))
{ {
$f = PHPGW_SERVER_ROOT . '/' . $entry . '/setup/setup.inc.php'; $f = PHPGW_SERVER_ROOT . '/' . $entry . '/setup/setup.inc.php';
if (file_exists ($f)) if (@file_exists ($f))
{ {
include($f); @include($f);
$setup_info[$entry]['filename'] = $f; $setup_info[$entry]['filename'] = $f;
} }
} }