diff --git a/Sources/Profile.php b/Sources/Profile.php index 27094e2d4b..319427b1c5 100644 --- a/Sources/Profile.php +++ b/Sources/Profile.php @@ -3055,7 +3055,7 @@ protected function setAvatarAttachment(string $filepath): string|null } // Move to its final name and location. Error on failure. - if (!$image->move($upload_dir . '/avatar_' . $this->id . '_' . time() . '.' . image_type_to_extension($image->type))) + if (!$image->move($upload_dir . '/avatar_' . $this->id . '_' . time() . image_type_to_extension($image->type))) { ErrorHandler::fatalLang('attach_timeout', 'critical'); }