Keep the current quota if no suitable quota is found

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pull/6677/head
Juan Pablo Villafáñez 9 years ago committed by Arthur Schiwon
parent 5f25dd7095
commit d6d895dd74
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
  1. 1
      apps/user_ldap/lib/User/User.php

@ -529,7 +529,6 @@ class User {
$targetUser->setQuota($quota);
} else {
$this->log->log('not suitable default quota found for user ' . $this->uid . ': [' . $defaultQuota . ']', \OCP\Util::WARN);
$targetUser->setQuota('default');
}
} else {
$this->log->log('trying to set a quota for user ' . $this->uid . ' but the user is missing', \OCP\Util::ERROR);

Loading…
Cancel
Save