Allow major/minor match for owncloud version
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
934f8a17f9
commit
ab40a7c585
|
@ -192,7 +192,10 @@ class Updater extends BasicEmitter {
|
||||||
$currentVendor = $this->config->getAppValue('core', 'vendor', '');
|
$currentVendor = $this->config->getAppValue('core', 'vendor', '');
|
||||||
|
|
||||||
// Vendor was not set correctly on install, so we have to white-list known versions
|
// 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';
|
$currentVendor = 'owncloud';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue