diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-08-05 16:17:59 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-08-05 16:17:59 +0000 |
commit | 3c43b7289323e7c1257ac34bd001d4167b94dd3b (patch) | |
tree | e413b3302efb78fd305ff503582fc02bc4182bc4 /usr | |
parent | c669255503af047b645f71f8aa37bc6dc133fefb (diff) | |
download | pfsense-3c43b7289323e7c1257ac34bd001d4167b94dd3b.zip pfsense-3c43b7289323e7c1257ac34bd001d4167b94dd3b.tar.gz |
Fix error: Warning: Invalid argument supplied for foreach() in /usr/local/www/pkg_mgr_install.php on line 155
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/pkg_mgr_install.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index 20d2dde..3572d88 100755 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -154,10 +154,10 @@ switch($_GET['mode']) { update_output_window($static_output); break; case "reinstallall": - if($config['installedpackages']['package'] <> "") + if($config['installedpackages']['package']) exec("rm -rf /var/db/pkg/*"); - foreach($config['installedpackages']['package'] as $package) - $todo[] = array('name' => $package['name'], 'version' => $package['version']); + foreach($config['installedpackages']['package'] as $package) + $todo[] = array('name' => $package['name'], 'version' => $package['version']); $pkg_id = 0; foreach($todo as $pkgtodo) { $static_output = ""; |