Skip to content

Commit

Permalink
Merge pull request #29673 from owncloud/stable10-f2cd85f4a3a6e68db3ef…
Browse files Browse the repository at this point in the history
…581311cdf9b17d06c0b3

[stable10] do not reset quota if it was not provided
  • Loading branch information
DeepDiver1975 authored Dec 5, 2017
2 parents 0b0dd30 + 89b27c1 commit e608905
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 e608905

Please sign in to comment.