Removed obsolete references
authorMarcel Werk <burntime@woltlab.com>
Thu, 16 Jun 2016 16:14:38 +0000 (18:14 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 16 Jun 2016 16:15:15 +0000 (18:15 +0200)
wcfsetup/install/files/lib/data/like/ViewableLikeList.class.php
wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueueList.class.php

index 0edeee1ba8381f577aa6605ac488dde253daece2..b7127f2a5c3e4dd3975a1119aa3a95e2afca9fb6 100644 (file)
@@ -46,7 +46,7 @@ class ViewableLikeList extends LikeList {
                
                $userIDs = [];
                $likeGroups = [];
-               foreach ($this->objects as &$like) {
+               foreach ($this->objects as $like) {
                        $userIDs[] = $like->userID;
                        
                        if (!isset($likeGroups[$like->objectTypeID])) {
@@ -59,7 +59,6 @@ class ViewableLikeList extends LikeList {
                        
                        $likeGroups[$like->objectTypeID]['objects'][] = $like;
                }
-               unset($like);
                
                // set user profiles
                if (!empty($userIDs)) {
index 09876bbbeb34c8db30227ba3aee3f6ff239ac9dc..ae217b7ac0909a2306607bcb0f53004962a62861 100644 (file)
@@ -62,7 +62,7 @@ class ViewableModerationQueueList extends ModerationQueueList {
                
                if (!empty($this->objects)) {
                        $objects = [];
-                       foreach ($this->objects as &$object) {
+                       foreach ($this->objects as $object) {
                                if (!isset($objects[$object->objectTypeID])) {
                                        $objects[$object->objectTypeID] = [];
                                }