From: Joshua Rüsweg Date: Sat, 12 May 2018 18:30:42 +0000 (+0200) Subject: Fix typo in variable name X-Git-Tag: 5.2.0_Alpha_1~364^2~101^2~116 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=29abee4c1b67869d6e6365e9a1568986e3e29773;p=GitHub%2FWoltLab%2FWCF.git Fix typo in variable name See #2508 --- diff --git a/wcfsetup/install/files/lib/data/like/object/LikeObject.class.php b/wcfsetup/install/files/lib/data/like/object/LikeObject.class.php index 1eef13a34d..8b5a8ec678 100644 --- a/wcfsetup/install/files/lib/data/like/object/LikeObject.class.php +++ b/wcfsetup/install/files/lib/data/like/object/LikeObject.class.php @@ -74,16 +74,16 @@ class LikeObject extends DatabaseObject { if (is_array($cachedReactions)) { foreach ($cachedReactions as $reactionTypeID => $reactionCount) { - $reaction = ReactionTypeCache::getInstance()->getReactionTypeByID($reactionTypeID); + $reactionType = ReactionTypeCache::getInstance()->getReactionTypeByID($reactionTypeID); // prevent outdated reactions - if ($reaction !== null) { + if ($reactionType !== null) { $this->reactions[$reactionTypeID] = [ 'reactionCount' => $reactionCount, - 'renderedReactionIcon' => $reaction->renderIcon(), - 'renderedReactionIconEncoded' => JSON::encode($reaction->renderIcon()), - 'reactionTitle' => $reaction->getTitle(), - 'reactionType' => $reaction->type + 'renderedReactionIcon' => $reactionType->renderIcon(), + 'renderedReactionIconEncoded' => JSON::encode($reactionType->renderIcon()), + 'reactionTitle' => $reactionType->getTitle(), + 'reactionType' => $reactionType->type ]; } }