diff --git a/lib/private/Updater.php b/lib/private/Updater.php index 1c79e2ad44..43096e7c1f 100644 --- a/lib/private/Updater.php +++ b/lib/private/Updater.php @@ -182,16 +182,8 @@ class Updater extends BasicEmitter { $currentVendor = $this->config->getAppValue('core', 'vendor', ''); // 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 (isset($allowedPreviousVersions['owncloud'][$oldVersion])) { - $currentVendor = 'owncloud'; - } + if ($currentVendor === '' && isset($allowedPreviousVersions['owncloud'][$oldVersion])) { + $currentVendor = 'owncloud'; } if ($currentVendor === 'nextcloud') {