From 1dbbc135b1cf144b3269a410ee3eb67ce9d8d64a Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Thu, 14 Jan 2016 09:26:31 +0545 Subject: Fix redundant tests for reinstallpkg --- src/usr/local/www/pkg_mgr_install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/usr/local/www/pkg_mgr_install.php') diff --git a/src/usr/local/www/pkg_mgr_install.php b/src/usr/local/www/pkg_mgr_install.php index b603b06..5ce1331 100644 --- a/src/usr/local/www/pkg_mgr_install.php +++ b/src/usr/local/www/pkg_mgr_install.php @@ -224,7 +224,7 @@ if ($_POST) { case 'reinstallall': $headline = gettext("Reinstall all packages"); case 'reinstallpkg': - if ($_GET['from'] && $_GET['from']) { + if ($_GET['from'] && $_GET['to']) { $headline = gettext("Upgrade package"); } else { $headline = gettext("Reinstall package"); @@ -300,7 +300,7 @@ if ($input_errors) { ?> Package: will be upgraded from to .