diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-10-09 12:15:40 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-10-09 12:15:40 -0400 |
commit | 54c8ef44041a0213da54bf93f14d1d7fca218000 (patch) | |
tree | 14ac1e1dd34c46af4d9bf93ffea3d4570b08af44 /src/usr/local/www/pkg_mgr.php | |
parent | b1f135331f79b4b06badba2b6e9c9a541a00356e (diff) | |
download | pfsense-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.php | 8 |
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); + } } } |