mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Update apps/user_ldap/lib/User/User.php
Co-authored-by: Arthur Schiwon <blizzz@arthur-schiwon.de> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
66f6e94d7d
commit
7f5b61c66d
1 changed files with 1 additions and 1 deletions
|
|
@ -739,7 +739,7 @@ class User {
|
|||
}
|
||||
|
||||
|
||||
//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']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue