diff options
author | Renato Botelho <renato@netgate.com> | 2015-10-20 18:01:00 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-10-20 18:01:00 -0200 |
commit | 05666b7728575b94d79c8675ac049a5af7e66cf2 (patch) | |
tree | 4ddc3a919bb1473183a7f1364784095e4319a481 /src | |
parent | 80db1d67a846ad663ab680a77950129b5df8dfcf (diff) | |
download | pfsense-05666b7728575b94d79c8675ac049a5af7e66cf2.zip pfsense-05666b7728575b94d79c8675ac049a5af7e66cf2.tar.gz |
Fix inverted version comparison
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/pkg_mgr_installed.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/pkg_mgr_installed.php b/src/usr/local/www/pkg_mgr_installed.php index 93434c8..1b1514a 100644 --- a/src/usr/local/www/pkg_mgr_installed.php +++ b/src/usr/local/www/pkg_mgr_installed.php @@ -141,7 +141,7 @@ if(empty($installed_packages)):?> $changeloglink ="https://github.com/pfsense/pfsense-packages/commits/master/config/".$commit_dir[(count($commit_dir)-2)]; #check package version if (isset($pkg['installed_version']) && isset($pkg['version'])) { - $version_compare = pkg_version_compare($pkg['version'], $pkg['installed_version']); + $version_compare = pkg_version_compare($pkg['installed_version'], $pkg['version']); if ($version_compare == '>') { // we're running a newer version of the package $status = 'Newer then available ('. $pkg['version'] .')'; @@ -180,7 +180,7 @@ if(empty($installed_packages)):?> <?php if (!$g['disablepackagehistory']):?> <a target="_blank" title="<?=gettext("View changelog")?>" href="<?=htmlspecialchars($changeloglink)?>"> <?php endif;?> - <?=htmlspecialchars($pkg['version'])?> + <?=htmlspecialchars($pkg['installed_version'])?> </a> </td> <td> |