summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-16 01:41:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-16 01:41:35 +0000
commit2507bf87c3eca605a9d402e0d3256d5bece54002 (patch)
tree66b22979dc58031aa6063f0a518b472a3dfab208
parentbb9ea5246182977beba0deee4967ca017ad80ac0 (diff)
downloadpfsense-2507bf87c3eca605a9d402e0d3256d5bece54002.zip
pfsense-2507bf87c3eca605a9d402e0d3256d5bece54002.tar.gz
* Make consistent the variable names ($pkg)
* Fix a invalid argument bug
-rw-r--r--etc/inc/pfsense-utils.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 8cc7921..142f236 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -343,8 +343,8 @@ function remove_text_from_file($file, $text) {
*/
function is_package_installed($packagename) {
global $config;
- foreach($config['installedpackages']['package'] as $package) {
- if($package['name'] == $packagename) return 1;
+ foreach ($config['installedpackages']['package'] as $pkg) {
+ if($pkg['name'] == "squid") return 1;
}
return 0;
}
OpenPOWER on IntegriCloud