From d757ea5edd95e976d94e3cad3ba6175ce30bf704 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 16 Jun 2016 18:14:38 +0200 Subject: [PATCH] Removed obsolete references --- .../install/files/lib/data/like/ViewableLikeList.class.php | 3 +-- .../moderation/queue/ViewableModerationQueueList.class.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/data/like/ViewableLikeList.class.php b/wcfsetup/install/files/lib/data/like/ViewableLikeList.class.php index 0edeee1ba8..b7127f2a5c 100644 --- a/wcfsetup/install/files/lib/data/like/ViewableLikeList.class.php +++ b/wcfsetup/install/files/lib/data/like/ViewableLikeList.class.php @@ -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)) { diff --git a/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueueList.class.php b/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueueList.class.php index 09876bbbeb..ae217b7ac0 100644 --- a/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueueList.class.php +++ b/wcfsetup/install/files/lib/data/moderation/queue/ViewableModerationQueueList.class.php @@ -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] = []; } -- 2.20.1