diff options
author | Phil Davis <phil.davis@inf.org> | 2016-01-14 09:26:31 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-01-14 09:26:31 +0545 |
commit | 1dbbc135b1cf144b3269a410ee3eb67ce9d8d64a (patch) | |
tree | da6c638460b927100226e0f9e335752a5d808724 /src/usr/local/www/pkg_mgr_install.php | |
parent | cd656b85255feee8313e6081325f05db7a6c2642 (diff) | |
download | pfsense-1dbbc135b1cf144b3269a410ee3eb67ce9d8d64a.zip pfsense-1dbbc135b1cf144b3269a410ee3eb67ce9d8d64a.tar.gz |
Fix redundant tests for reinstallpkg
Diffstat (limited to 'src/usr/local/www/pkg_mgr_install.php')
-rw-r--r-- | src/usr/local/www/pkg_mgr_install.php | 4 |
1 files changed, 2 insertions, 2 deletions
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) { ?> <?=gettext("All packages will be reinstalled.");?> <?php - } else if ($_GET['from'] && $_GET['from']) { + } else if ($_GET['from'] && $_GET['to']) { ?> Package: <b><?=$pkgname;?></b> will be upgraded from <b><?=$_GET['from']?></b> to <b><?=$_GET['to']?></b>. <?php |