Make is_package_installed() work for all packages - not just squid ;)

This commit is contained in:
Colin Smith 2005-03-16 00:17:42 +00:00
parent 87362af36b
commit 3c2a4809cd

View File

@ -344,7 +344,7 @@ function remove_text_from_file($file, $text) {
function is_package_installed($packagename) {
global $config;
foreach($config['installedpackages']['package'] as $package) {
if($package['name'] == "squid") return 1;
if($package['name'] == $packagename) return 1;
}
return 0;
}