aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Updater.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Updater.php')
-rw-r--r--lib/private/Updater.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php
index b9b72dd7fa4..44f99c9e8c7 100644
--- a/lib/private/Updater.php
+++ b/lib/private/Updater.php
@@ -192,7 +192,10 @@ 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 === '' && isset($allowedPreviousVersions['owncloud'][$oldVersion])) {
+ if ($currentVendor === '' && (
+ isset($allowedPreviousVersions['owncloud'][$oldVersion]) ||
+ isset($allowedPreviousVersions['owncloud'][$majorMinor])
+ )) {
$currentVendor = 'owncloud';
}