diff options
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/pkg_mgr_installed.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php index 6a4d16b..26e70af 100755 --- a/usr/local/www/pkg_mgr_installed.php +++ b/usr/local/www/pkg_mgr_installed.php @@ -89,13 +89,13 @@ include("head.inc"); ?><td class="listlr"><?php echo "Current: Unknown.<br>Installed: " . $pkg['version']; ?></td><?php - } elseif($pkg['version'] > $latest_package) { + } elseif(strcmp($pkg['version'], $latest_package) > 0) { /* we're running a newer version of the package */ ?><td class="listbggrey"><font color="#FFFFFFF"><?php echo "Current: {$latest_version}"; echo "<br>Installed: {$pkg['version']}"; ?></td><?php - } elseif($pkg['version'] < $latest_package) { + } elseif(strcmp($pkg['version'], $latest_package) < 0) { /* our package is out of date */ ?><td class="listbg"><font color="#FFFFFFF"><?php echo "Current: {$latest_version}"; |