summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/pkg_mgr.php
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2015-10-09 12:15:40 -0400
committerStephen Beaver <sbeaver@netgate.com>2015-10-09 12:15:40 -0400
commit54c8ef44041a0213da54bf93f14d1d7fca218000 (patch)
tree14ac1e1dd34c46af4d9bf93ffea3d4570b08af44 /src/usr/local/www/pkg_mgr.php
parentb1f135331f79b4b06badba2b6e9c9a541a00356e (diff)
downloadpfsense-54c8ef44041a0213da54bf93f14d1d7fca218000.zip
pfsense-54c8ef44041a0213da54bf93f14d1d7fca218000.tar.gz
Fixed errors when no packages installed
Diffstat (limited to 'src/usr/local/www/pkg_mgr.php')
-rw-r--r--src/usr/local/www/pkg_mgr.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/usr/local/www/pkg_mgr.php b/src/usr/local/www/pkg_mgr.php
index f2d1b57..ed4f908 100644
--- a/src/usr/local/www/pkg_mgr.php
+++ b/src/usr/local/www/pkg_mgr.php
@@ -175,9 +175,11 @@ if(!$pkg_info || !is_array($pkg_info)):?>
}
// Check to see if it is already installed
- foreach($config['installedpackages']['package'] as $installedpkg) {
- if($installedpkg['name'] == $shortname) {
- continue(2);
+ if(isset($config['installedpackages']['package'])) {
+ foreach($config['installedpackages']['package'] as $installedpkg) {
+ if($installedpkg['name'] == $shortname) {
+ continue(2);
+ }
}
}
OpenPOWER on IntegriCloud