summaryrefslogtreecommitdiffstats
path: root/pts-core/modules/update_checker.php
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-10-29 09:57:23 -0400
committerMichael Larabel <michael@phx-laptop.(none)>2008-10-29 09:57:23 -0400
commit839264b36c19d4346f52afa2b735dfcb89344465 (patch)
treed480d6be957e6a9efb10ffff0d06f72059788d16 /pts-core/modules/update_checker.php
parentcbf67ee53f1028d085324b1779662515907dd754 (diff)
downloadphoronix-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/update_checker.php')
-rw-r--r--pts-core/modules/update_checker.php2
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.");