Use the existing array of OC versions

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-07-27 12:07:51 +02:00
parent 40b47f13df
commit 43a6ba899e
No known key found for this signature in database
GPG key ID: E166FD8976B3BAC8

View file

@ -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';
}
}