Fixed wrong parameter type
authorMarcel Werk <burntime@woltlab.com>
Sun, 28 Mar 2021 12:13:14 +0000 (14:13 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 28 Mar 2021 12:13:14 +0000 (14:13 +0200)
wcfsetup/install/files/lib/data/trophy/TrophyAction.class.php

index 5898034e1ff75fe8cfc8af159dd11f53246d662e..cc38faae2632c4cb9c1f14980505864785da1493 100644 (file)
@@ -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());
                                }
                        }
                }