diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2010-06-23 04:50:30 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2010-06-23 04:50:30 +0400 |
commit | b264d497744b9d9d6179294bbcd8d355e6db02b8 (patch) | |
tree | 5e5b3633f740cfac96c187a984a2c16fcfcde942 /core/Updater.php | |
parent | f98e0a116ac700c8fee6a3d7e0c82756655e93bc (diff) |
Fixes #1441 Thanks for checking vipsoft
I also see 2 other unit tests failing:
Fail: ../tests/core/ArchiveProcessing.test.php -> Test_Piwik_ArchiveProcessing -> test_init_today -> Equal expectation fails because [Integer: 1277254800] differs from [Integer: 1277254137] by 663 at [ArchiveProcessing.test.php line 100]
Fail: ../tests/core/ArchiveProcessing.test.php -> Test_Piwik_ArchiveProcessing -> test_init_today -> Equal expectation fails because [Integer: 1277254800] differs from [Integer: 0] by 1277254800 at [ArchiveProcessing.test.php line 113]
Do you see them too?
git-svn-id: http://dev.piwik.org/svn/trunk@2353 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/Updater.php')
-rw-r--r-- | core/Updater.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Updater.php b/core/Updater.php index 2b707cba50..b45a16436f 100644 --- a/core/Updater.php +++ b/core/Updater.php @@ -206,7 +206,7 @@ class Piwik_Updater if( // if the update is from a newer version version_compare($currentVersion, $fileVersion) == -1 // but we don't execute updates from non existing future releases - && version_compare($fileVersion, $newVersion) == -1) + && version_compare($fileVersion, $newVersion) <= 0) { $componentsWithUpdateFile[$name][$file] = $fileVersion; } |