summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/User/User.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-12 16:55:58 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-25 16:06:08 +0200
commitb6163183276470039f3a2a2094d1a6224c272f28 (patch)
treed45ec52cb1af52cdb35e3323ba4ed00e7c8e0184 /apps/user_ldap/lib/User/User.php
parentdb2e9df5f000b129e9dad2ce801baada0a17a8a4 (diff)
downloadnextcloud-server-b6163183276470039f3a2a2094d1a6224c272f28.tar.gz
nextcloud-server-b6163183276470039f3a2a2094d1a6224c272f28.zip
Fix several minor issues
Diffstat (limited to 'apps/user_ldap/lib/User/User.php')
-rw-r--r--apps/user_ldap/lib/User/User.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php
index 828648906fb..8f7666790c1 100644
--- a/apps/user_ldap/lib/User/User.php
+++ b/apps/user_ldap/lib/User/User.php
@@ -464,7 +464,7 @@ class User {
}
}
if(!is_null($quota)) {
- $user = $this->userManager->get($this->uid)->setQuota($quota);
+ $this->userManager->get($this->uid)->setQuota($quota);
}
}
@@ -502,16 +502,13 @@ class User {
*/
private function setOwnCloudAvatar() {
if(!$this->image->valid()) {
- $this->log->log('user_ldap', 'jpegPhoto data invalid for '.$this->dn,
- \OCP\Util::ERROR);
+ $this->log->log('jpegPhoto data invalid for '.$this->dn, \OCP\Util::ERROR);
return;
}
//make sure it is a square and not bigger than 128x128
$size = min(array($this->image->width(), $this->image->height(), 128));
if(!$this->image->centerCrop($size)) {
- $this->log->log('user_ldap',
- 'croping image for avatar failed for '.$this->dn,
- \OCP\Util::ERROR);
+ $this->log->log('croping image for avatar failed for '.$this->dn, \OCP\Util::ERROR);
return;
}