Fix updating from some 11 versions when people didn't update

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2017-05-17 11:19:45 +02:00
parent dd6c9cb03d
commit e1b5d20b3b
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
1 changed files with 6 additions and 0 deletions

View File

@ -194,6 +194,12 @@ class Updater extends BasicEmitter {
// Vendor was not set correctly on install, so we have to white-list known versions
if ($currentVendor === '') {
if (in_array($oldVersion, [
'11.0.2.7',
'11.0.1.2',
'11.0.0.10',
], true)) {
$currentVendor = 'nextcloud';
} else if (in_array($oldVersion, [
'10.0.0.12',
], true)) {
$currentVendor = 'owncloud';