From 89b27c1dd5a2c2838f6ebba19f019c2ba57743da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 17 Nov 2017 14:48:12 +0100 Subject: [PATCH] [stable10] do not reset quota if it was not provided --- lib/private/User/SyncService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/private/User/SyncService.php b/lib/private/User/SyncService.php index b6689d60d35c..28f918d67d3a 100644 --- a/lib/private/User/SyncService.php +++ b/lib/private/User/SyncService.php @@ -148,7 +148,10 @@ public function setupAccount(Account $a, $uid) { } } if ($this->backend instanceof IProvidesQuotaBackend) { - $a->setQuota($this->backend->getQuota($uid)); + $quota = $this->backend->getQuota($uid); + if ($quota !== null) { + $a->setQuota($quota); + } } else { list($hasKey, $value) = $this->readUserConfig($uid, 'files', 'quota'); if ($hasKey) {