]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use the existing array of OC versions 5902/head
authorJoas Schilling <coding@schilljs.com>
Thu, 27 Jul 2017 10:07:51 +0000 (12:07 +0200)
committerJoas Schilling <coding@schilljs.com>
Thu, 27 Jul 2017 10:30:24 +0000 (12:30 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/Updater.php

index 6d08e5d4cc06a5e8477c206a91df938af6489a4b..f80b3a863a5f1bc05f675a06a58e7911520a27e7 100644 (file)
@@ -199,9 +199,7 @@ class Updater extends BasicEmitter {
                                '11.0.0.10',
                        ], true)) {
                                $currentVendor = 'nextcloud';
-                       } else if (in_array($oldVersion, [
-                                       '10.0.0.12',
-                               ], true)) {
+                       } else if (isset($allowedPreviousVersions['owncloud'][$oldVersion])) {
                                $currentVendor = 'owncloud';
                        }
                }