summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-04-26 21:33:02 +0000
committerColin Smith <colin@pfsense.org>2005-04-26 21:33:02 +0000
commit90099377ba5900b3803cf9915a2b0c58f7f06720 (patch)
tree5ab82b4f84d4bccf4e22272460f5544903702239 /usr
parent5d75c0e0ff197fda8745d91ca5e934fe0065be20 (diff)
downloadpfsense-90099377ba5900b3803cf9915a2b0c58f7f06720.zip
pfsense-90099377ba5900b3803cf9915a2b0c58f7f06720.tar.gz
Check the correct array for packages.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/pkg_mgr.php4
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>";
}
?>
OpenPOWER on IntegriCloud