summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_mgr.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-04-30 23:39:49 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-04-30 23:39:49 +0000
commit62fc920dc5eacc0c8c9d3f61cf9dd19b837c4a43 (patch)
treeacab01343dc16e596dc7868e68d548d6bd1e0237 /usr/local/www/pkg_mgr.php
parent8f6eab728bb02168737440f4d77a3e70ef156d73 (diff)
downloadpfsense-62fc920dc5eacc0c8c9d3f61cf9dd19b837c4a43.zip
pfsense-62fc920dc5eacc0c8c9d3f61cf9dd19b837c4a43.tar.gz
Check on the package name in is_array()
Diffstat (limited to 'usr/local/www/pkg_mgr.php')
-rwxr-xr-xusr/local/www/pkg_mgr.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php
index 4e095ba..c3a8245 100755
--- a/usr/local/www/pkg_mgr.php
+++ b/usr/local/www/pkg_mgr.php
@@ -101,9 +101,11 @@ if(!$pkg_config['packages']) {
<?php
$pkgs = array();
$instpkgs = array();
- if($config['installedpackages']['package'] != "") foreach($config['installedpackages']['package'] as $instpkg) $instpkgs[] = $instpkg['name'];
+ if($config['installedpackages']['package'] != "")
+ foreach($config['installedpackages']['package'] as $instpkg)
+ $instpkgs[] = $instpkg['name'];
foreach ($pkg_config['packages']['package'] as $pkg) {
- if(!in_array($pkg, $instpkgs)) {
+ if(!in_array($pkg['name'], $instpkgs)) {
$pkgs[] = $pkg['name'];
}
}
OpenPOWER on IntegriCloud