fixed "to many warnings in error_log", which caused acording to Finjon Kiang to crash apache

This commit is contained in:
Ralf Becker 2006-08-13 05:11:24 +00:00
parent d1d4bc610e
commit 93b71ce63d

View File

@ -14,7 +14,6 @@
$run_by_webserver = !!$_SERVER['PHP_SELF'];
$is_windows = strtoupper(substr(PHP_OS,0,3)) == 'WIN';
if ($run_by_webserver)
{
$GLOBALS['egw_info'] = array(
@ -363,7 +362,7 @@
$checks = implode(', ',$checks);
$icon = $passed_icon;
if (($msg = $args['msg']))
if (isset($args['msg']) && ($msg = $args['msg']))
{
$msg .= ': '.$perms."<br />\n";
}
@ -371,7 +370,7 @@
{
$msg = lang('Checking file-permissions of %1 for %2 %3: %4',$rel_name,$check_not,$checks,$perms)."<br />\n";
}
if ($args['error'])
if (isset($args['error']) && $args['error'])
{
$extra_error_msg = "<br />\n".$args['error'];
}