diff options
author | Colin Smith <colin@pfsense.org> | 2005-04-26 21:33:02 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-04-26 21:33:02 +0000 |
commit | 90099377ba5900b3803cf9915a2b0c58f7f06720 (patch) | |
tree | 5ab82b4f84d4bccf4e22272460f5544903702239 /usr | |
parent | 5d75c0e0ff197fda8745d91ca5e934fe0065be20 (diff) | |
download | pfsense-90099377ba5900b3803cf9915a2b0c58f7f06720.zip pfsense-90099377ba5900b3803cf9915a2b0c58f7f06720.tar.gz |
Check the correct array for packages.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/pkg_mgr.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php index fe435ee..00e6a2b 100755 --- a/usr/local/www/pkg_mgr.php +++ b/usr/local/www/pkg_mgr.php @@ -100,7 +100,7 @@ if(!$pkg_config['packages']) { <?php $pkgs = array(); $instpkgs = array(); - 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)) { $pkgs[] = $pkg['name']; @@ -109,7 +109,7 @@ if(!$pkg_config['packages']) { asort($pkgs); $pkgs = array_keys($pkgs); foreach($pkgs as $index) { - if(!is_string($instpkgs[0])) { + if($pkgs[0] == "") { echo "<tr><td colspan=\"3\"><center>There are currently no available packages for installation.</td></tr>"; } ?> |