From 3c43b7289323e7c1257ac34bd001d4167b94dd3b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 5 Aug 2008 16:17:59 +0000 Subject: Fix error: Warning: Invalid argument supplied for foreach() in /usr/local/www/pkg_mgr_install.php on line 155 --- usr/local/www/pkg_mgr_install.php | 6 +++--- 1 file 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 = ""; -- cgit v1.1