fix for old pear installs without registry: packages from egw-pear get not reported if checked first

This commit is contained in:
Ralf Becker 2007-06-25 10:01:39 +00:00
parent 3d7f714379
commit 3c2fe33a23

View File

@ -327,7 +327,7 @@
}
}
// is the right version availible
$available = $pear_available && (!$package || $available) && (!$min_version || version_compare($min_version,$version_available) <= 0);
$available = (@$available || $pear_available && !$package) && (!$min_version || version_compare($min_version,$version_available) <= 0);
echo '<div>'.($available ? $passed_icon : $warning_icon).' <span'.($available ? '' : ' class="setup_warning"').'>'.
lang('Checking PEAR%1 is installed',($package?'::'.$package:'').($min_version?" ($min_version)":'')).': '.
($available ? ($version_available ? $version_available : lang('True')) : lang('False'))."</span></div>\n";