summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_mgr_installed.php
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-04-25 21:30:17 +0000
committerColin Smith <colin@pfsense.org>2005-04-25 21:30:17 +0000
commit441cd40668493d5e7764ab7074f837e54586a5a0 (patch)
treec15f263a84eb69f0319fc10b8ea7eae4c74ef1c5 /usr/local/www/pkg_mgr_installed.php
parentfc160034bcbc5696748175d98b28cbeb2752b0e7 (diff)
downloadpfsense-441cd40668493d5e7764ab7074f837e54586a5a0.zip
pfsense-441cd40668493d5e7764ab7074f837e54586a5a0.tar.gz
We don't need to foreach through pkg_config.xml.
Diffstat (limited to 'usr/local/www/pkg_mgr_installed.php')
-rwxr-xr-xusr/local/www/pkg_mgr_installed.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php
index be11b34..859d012 100755
--- a/usr/local/www/pkg_mgr_installed.php
+++ b/usr/local/www/pkg_mgr_installed.php
@@ -66,12 +66,7 @@ include("fbegin.inc");
<?php
$instpkgs = array();
- foreach($config['installedpackages']['package'] as $instpkg) $instpkgs[] = $instpkg['name'];
- foreach ($pkg_config['packages']['package'] as $pkg) {
- if(!in_array($pkg, $instpkgs)) {
- $pkgs[] = $pkg['name'];
- }
- }
+ foreach($config['installedpackages']['package'] as $instpkg) $instpkgs[] = $instpkg['name'];
if($config['installedpackages']['package'] != "") {
foreach($config['installedpackages']['package'] as $instpkg) $instpkgs[] = $instpkg['name'];
asort($instpkgs);
OpenPOWER on IntegriCloud