Fix typo in variable name
authorJoshua Rüsweg <josh@bastelstu.be>
Sat, 12 May 2018 18:30:42 +0000 (20:30 +0200)
committerJoshua Rüsweg <josh@bastelstu.be>
Sat, 12 May 2018 18:30:42 +0000 (20:30 +0200)
See #2508

wcfsetup/install/files/lib/data/like/object/LikeObject.class.php

index 1eef13a34d177a9195b039391859af0565a1a180..8b5a8ec6783471dbe6e499f6c2abc4fdc92fed77 100644 (file)
@@ -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
                                                ];
                                        }
                                }