diff options
author | jim-p <jimp@pfsense.org> | 2012-06-07 12:20:43 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-06-07 12:20:43 -0400 |
commit | 9a19c3164b194b9a3a82f048ee2d2c8b461d8b9d (patch) | |
tree | c9cbe6dbe88d3af13c92c29680b43f5a3552d4bc /usr/local/www/pkg_mgr_installed.php | |
parent | 93888ad9ffac90b4dce8d31eda2571d82dd52f38 (diff) | |
download | pfsense-9a19c3164b194b9a3a82f048ee2d2c8b461d8b9d.zip pfsense-9a19c3164b194b9a3a82f048ee2d2c8b461d8b9d.tar.gz |
While I'm here, don't test these with isset, just test directly, since they will be set to true/false in globals.inc
Diffstat (limited to 'usr/local/www/pkg_mgr_installed.php')
-rwxr-xr-x | usr/local/www/pkg_mgr_installed.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php index 75979ed..d8c25ad 100755 --- a/usr/local/www/pkg_mgr_installed.php +++ b/usr/local/www/pkg_mgr_installed.php @@ -138,7 +138,7 @@ include("head.inc"); // we're running a newer version of the package if(strcmp($pkg['version'], $latest_package) > 0) { $tdclass = "listbggrey"; - if (isset($g['disablepackagehistory'])) + if ($g['disablepackagehistory']) $pkgver = "<a>".gettext("Available") .": ". $latest_package . "<br/>"; else $pkgver = "<a target='_new' href='$changeloglink'>".gettext("Available") .": ". $latest_package . "<br/>"; @@ -147,7 +147,7 @@ include("head.inc"); // we're running an older version of the package if(strcmp($pkg['version'], $latest_package) < 0) { $tdclass = "listbg"; - if (isset($g['disablepackagehistory'])) + if ($g['disablepackagehistory']) $pkgver = "<a><font color='#ffffff'>" . gettext("Available") .": ". $latest_package . "<br/>"; else $pkgver = "<a target='_new' href='$changeloglink'><font color='#ffffff'>" . gettext("Available") .": ". $latest_package . "<br/>"; @@ -156,7 +156,7 @@ include("head.inc"); // we're running the current version if(!strcmp($pkg['version'], $latest_package)) { $tdclass = "listr"; - if (isset($g['disablepackagehistory'])) + if ($g['disablepackagehistory']) $pkgver = "<a>{$pkg['version']}</a>"; else $pkgver = "<a target='_new' href='$changeloglink'>{$pkg['version']}</a>"; @@ -166,7 +166,7 @@ include("head.inc"); $pkgver = ""; if(!strcmp($pkg['version'], $latest_package)) { $tdclass = "listr"; - if (isset($g['disablepackagehistory'])) + if ($g['disablepackagehistory']) $pkgver = "<a>{$pkg['version']}</a>"; else $pkgver = "<a target='_new' href='$changeloglink'>{$pkg['version']}</a>"; |