Skip to content

Commit

Permalink
Update apps/user_ldap/lib/User/User.php
Browse files Browse the repository at this point in the history
Co-authored-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
2 people authored and backportbot-nextcloud[bot] committed Oct 14, 2023
1 parent bd85053 commit de296a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/user_ldap/lib/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ private function setOwnCloudAvatar() {
}


//make sure it is a square and not bigger than 128x128
//make sure it is a square and not bigger than 512x512
$size = min([$this->image->width(), $this->image->height(), 512]);
if (!$this->image->centerCrop($size)) {
$this->logger->error('croping image for avatar failed for '.$this->dn, ['app' => 'user_ldap']);
Expand Down

0 comments on commit de296a4

Please sign in to comment.