From 2ea17b07495a66e8de9751d7b9b8083efc5f07b0 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 23 Aug 2011 00:40:54 -0400 Subject: [PATCH] use references for Notice::_setFaves() and Notice::_setRepeats() --- classes/Notice.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/classes/Notice.php b/classes/Notice.php index 64c9f91410..fd92cfe9e6 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2631,7 +2631,8 @@ class Notice extends Managed_DataObject } } foreach ($notices as $notice) { - $notice->_setFaves($faveMap[$notice->id]); + $faves = $faveMap[$notice->id]; + $notice->_setFaves(&$faves); } } @@ -2671,7 +2672,8 @@ class Notice extends Managed_DataObject $ids = self::_idsOf($notices); $repeatMap = Memcached_DataObject::listGet('Notice', 'repeat_of', $ids); foreach ($notices as $notice) { - $notice->_setRepeats($repeatMap[$notice->id]); + $repeats = $repeatMap[$notice->id]; + $notice->_setRepeats(&$repeats); } } } -- 2.39.5