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) {