diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/updater.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/private/updater.php b/lib/private/updater.php index 639571e8f70..71e9732c307 100644 --- a/lib/private/updater.php +++ b/lib/private/updater.php @@ -230,14 +230,8 @@ class Updater extends BasicEmitter { * @return bool */ public function isUpgradePossible($oldVersion, $newVersion, $allowedPreviousVersion) { - // downgrade is never allowed - if (version_compare($oldVersion, $newVersion, '>')) { - return false; - } - - // either we're updating from an allowed version or the current version return (version_compare($allowedPreviousVersion, $oldVersion, '<=') - || version_compare($newVersion, $oldVersion) === 0); + && version_compare($oldVersion, $newVersion, '<=')); } /** |