From: Marcel Werk Date: Thu, 16 Jun 2016 16:14:38 +0000 (+0200) Subject: Removed obsolete references X-Git-Tag: 3.0.0_Beta_1~1415 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d757ea5edd95e976d94e3cad3ba6175ce30bf704;p=GitHub%2FWoltLab%2FWCF.git Removed obsolete references --- 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] = []; }