From 29abee4c1b67869d6e6365e9a1568986e3e29773 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joshua=20R=C3=BCsweg?= Date: Sat, 12 May 2018 20:30:42 +0200 Subject: [PATCH] Fix typo in variable name See #2508 --- .../files/lib/data/like/object/LikeObject.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 ]; } } -- 2.20.1