diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-08 22:08:06 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-08 22:08:06 +0000 |
commit | a9dc5e119928fbc9d53c2bdad05835991b88438b (patch) | |
tree | 7af972f2fb370c39c907de00e822445403b15336 /usr/local/www/pkg_mgr_install.php | |
parent | 137066df43b3a13f92063f5a4161fda8ac518744 (diff) | |
download | pfsense-a9dc5e119928fbc9d53c2bdad05835991b88438b.zip pfsense-a9dc5e119928fbc9d53c2bdad05835991b88438b.tar.gz |
Do not foreach through installedpackages['package'] if its not defined
Diffstat (limited to 'usr/local/www/pkg_mgr_install.php')
-rwxr-xr-x | usr/local/www/pkg_mgr_install.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index fb313de..6b29877 100755 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -136,8 +136,9 @@ switch($_GET['mode']) { update_output_window($static_output); break; case "reinstallall": - foreach($config['installedpackages']['package'] as $package) - $todo[] = array('name' => $package['name'], 'version' => $package['version']); + if($config['installedpackages']['package'] <> "") + foreach($config['installedpackages']['package'] as $package) + $todo[] = array('name' => $package['name'], 'version' => $package['version']); foreach($todo as $pkgtodo) { $static_output = ""; update_output_window($static_output); |