Skip to content

Commit

Permalink
[stable10] do not reset quota if it was not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
butonic authored and DeepDiver1975 committed Nov 24, 2017
1 parent 2ee0304 commit 89b27c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/private/User/SyncService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 89b27c1

Please sign in to comment.