diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-04-30 23:39:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-04-30 23:39:49 +0000 |
commit | 62fc920dc5eacc0c8c9d3f61cf9dd19b837c4a43 (patch) | |
tree | acab01343dc16e596dc7868e68d548d6bd1e0237 /usr | |
parent | 8f6eab728bb02168737440f4d77a3e70ef156d73 (diff) | |
download | pfsense-62fc920dc5eacc0c8c9d3f61cf9dd19b837c4a43.zip pfsense-62fc920dc5eacc0c8c9d3f61cf9dd19b837c4a43.tar.gz |
Check on the package name in is_array()
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/pkg_mgr.php | 6 |
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']; } } |