From: Marcel Werk Date: Sun, 28 Mar 2021 12:13:14 +0000 (+0200) Subject: Fixed wrong parameter type X-Git-Tag: 5.3.6~40 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=86a206bd06375c3643c6f69c81c86292b6d6acb7;p=GitHub%2FWoltLab%2FWCF.git Fixed wrong parameter type --- diff --git a/wcfsetup/install/files/lib/data/trophy/TrophyAction.class.php b/wcfsetup/install/files/lib/data/trophy/TrophyAction.class.php index 5898034e1f..cc38faae26 100644 --- a/wcfsetup/install/files/lib/data/trophy/TrophyAction.class.php +++ b/wcfsetup/install/files/lib/data/trophy/TrophyAction.class.php @@ -105,7 +105,7 @@ class TrophyAction extends AbstractDatabaseObjectAction implements IToggleAction if (isset($this->parameters['data']['type']) && $this->parameters['data']['type'] === Trophy::TYPE_IMAGE) { foreach ($this->getObjects() as $trophy) { if (isset($this->parameters['tmpHash'])) { - $this->updateTrophyImage($trophy); + $this->updateTrophyImage($trophy->getDecoratedObject()); } } }