From 0539c788ef447b3a77217e216e6937aa04a9069c Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Fri, 26 Mar 2021 15:51:26 +0100 Subject: [PATCH] Update src/Model/Photo.php Co-authored-by: Hypolite Petovan --- src/Model/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Photo.php b/src/Model/Photo.php index 169038859..8b677a519 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -464,7 +464,7 @@ class Photo $maximagesize = DI::config()->get('system', 'maximagesize'); if (!empty($maximagesize) && ($filesize > $maximagesize)) { Logger::info('Avatar exceeds image limit', ['uid' => $uid, 'cid' => $cid, 'maximagesize' => $maximagesize, 'size' => $filesize, 'type' => $Image->getType()]); - if (($Image->getType() == 'image/gif')) { + if ($Image->getType() == 'image/gif') { $Image->toStatic(); $Image = new Image($Image->asString(), 'image/png');