diff options
author | Michael Larabel <michael@phx-laptop.(none)> | 2008-10-29 09:57:23 -0400 |
---|---|---|
committer | Michael Larabel <michael@phx-laptop.(none)> | 2008-10-29 09:57:23 -0400 |
commit | 839264b36c19d4346f52afa2b735dfcb89344465 (patch) | |
tree | d480d6be957e6a9efb10ffff0d06f72059788d16 /pts-core/modules | |
parent | cbf67ee53f1028d085324b1779662515907dd754 (diff) | |
download | phoronix-test-suite-upstream-839264b36c19d4346f52afa2b735dfcb89344465.tar.gz phoronix-test-suite-upstream-839264b36c19d4346f52afa2b735dfcb89344465.tar.xz phoronix-test-suite-upstream-839264b36c19d4346f52afa2b735dfcb89344465.zip |
update_checker: Fix version recognition / comparison
Diffstat (limited to 'pts-core/modules')
-rw-r--r-- | pts-core/modules/update_checker.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pts-core/modules/update_checker.php b/pts-core/modules/update_checker.php index 541161b..c6ddb10 100644 --- a/pts-core/modules/update_checker.php +++ b/pts-core/modules/update_checker.php @@ -38,7 +38,7 @@ class update_checker extends pts_module_interface $current_e = explode(".", PTS_VERSION); $latest_e = explode(".", $latest_reported_version); - if($latest_reported_version != PTS_VERSION && $latest_e[0] >= $current_e[0] && $latest_e[1] >= $current_e[1]) + if($latest_reported_version != PTS_VERSION && $latest_e[0] >= $current_e[0] && ($latest_e[1] > $current_e[1] || ($latest_e[1] == $current_e[1] && $latest_e[2] >= $current_e[2]))) { // New version of PTS is available echo pts_string_header("Currently you're using an outdated version of the Phoronix Test Suite.\nThe version in use is v" . PTS_VERSION . ", but the latest is v" . $latest_reported_version . ".\nPlease visit http://www.phoronix-test-suite.com/ to update this software."); |