diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-03-01 17:18:28 +0400 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-03-12 19:53:04 +0400 |
commit | 2ca1ba0384a473d1d47f3b030cbc85410c21b64f (patch) | |
tree | 3f49448db0fd92ca36960407eaf2d9e1be5fe02e /apps | |
parent | d81a7787b0f206ca83411ec19ce140429f9f34f6 (diff) |
LDAP fix: set user quota, if attribute is provided
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/user_ldap.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index fbc87f158a1..3de5ebacd36 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -81,9 +81,9 @@ class OC_USER_LDAP extends OC_User_Backend { if( !$this->ldap_dc ) return false; - $quota = $this->ldap_dc[$this->ldap_quota_attr][0]; + $quota = $this->ldap_dc[strtolower($this->ldap_quota_attr)][0]; $quota = $quota != -1 ? $quota : $this->ldap_quota_def; - OC_Preferences::setValue($uid, 'files', 'quota', $quota); + OC_Preferences::setValue($uid, 'files', 'quota', OC_Helper::computerFileSize($quota)); } private function setEmail( $uid ) { @@ -154,7 +154,7 @@ class OC_USER_LDAP extends OC_User_Backend { return false; } - if(!empty($this->ldap_quota) && !empty($this->ldap_quota_def)) { + if(!empty($this->ldap_quota_attr) && !empty($this->ldap_quota_def)) { $this->setQuota($uid); } |