diff options
author | Joas Schilling <coding@schilljs.com> | 2017-07-27 12:07:51 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-08-07 12:09:05 +0200 |
commit | 43a6ba899e4ea3433b424cdef2288aa527ebcc0e (patch) | |
tree | 910afc166a02b842ce8cff6600844e3ecbd96e21 /lib/private/Updater.php | |
parent | 40b47f13df0b97c7852c31b4ed8e3483e7f67c75 (diff) | |
download | nextcloud-server-43a6ba899e4ea3433b424cdef2288aa527ebcc0e.tar.gz nextcloud-server-43a6ba899e4ea3433b424cdef2288aa527ebcc0e.zip |
Use the existing array of OC versions
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Updater.php')
-rw-r--r-- | lib/private/Updater.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php index 902d22f6679..91ac5c665b3 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -200,9 +200,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'; } } |