summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/pkg_mgr.php4
-rwxr-xr-xusr/local/www/pkg_mgr_installed.php8
2 files changed, 6 insertions, 6 deletions
diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php
index b8d943c..10fa1c1 100755
--- a/usr/local/www/pkg_mgr.php
+++ b/usr/local/www/pkg_mgr.php
@@ -211,7 +211,7 @@ include("head.inc");
<?= $size ?>
</td>
-->
- <?php if (isset($g['disablepackagehistory'])){?>
+ <?php if ($g['disablepackagehistory']){?>
<td class="listr">
<?php }else{?>
<td class="listr" <?=domTT_title(gettext("Click ".ucfirst($index['name'])." version to check it's changelog."))?>>
@@ -219,7 +219,7 @@ include("head.inc");
<?=$index['status'] ?>
<br/>
<?php
- if (isset($g['disablepackagehistory']))
+ if ($g['disablepackagehistory'])
echo"<a>{$index['version']}</a>";
else
echo "<a target='_new' href='{$changeloglink}'>{$index['version']}</a>";
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>";
OpenPOWER on IntegriCloud