Project

General

Profile

« Previous | Next » 

Revision 441cd406

Added by Colin Smith over 20 years ago

We don't need to foreach through pkg_config.xml.

View differences:

usr/local/www/pkg_mgr_installed.php
66 66

  
67 67
		<?php
68 68
		$instpkgs = array();
69
                    foreach($config['installedpackages']['package'] as $instpkg) $instpkgs[] = $instpkg['name'];
70
                    foreach ($pkg_config['packages']['package'] as $pkg) {    
71
                        if(!in_array($pkg, $instpkgs)) {
72
                                $pkgs[] = $pkg['name'];
73
                        }
74
                    }
69
                foreach($config['installedpackages']['package'] as $instpkg) $instpkgs[] = $instpkg['name'];
75 70
                 if($config['installedpackages']['package'] != "") {
76 71
		    foreach($config['installedpackages']['package'] as $instpkg) $instpkgs[] = $instpkg['name'];
77 72
		    asort($instpkgs);

Also available in: Unified diff