]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use references for Notice::_setFaves() and Notice::_setRepeats()
authorEvan Prodromou <evan@status.net>
Tue, 23 Aug 2011 04:40:54 +0000 (00:40 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 23 Aug 2011 04:40:54 +0000 (00:40 -0400)
classes/Notice.php

index 64c9f91410dfb4740ad2f4bd01c62ab918f42f43..fd92cfe9e66f837f1e39e67663710de9c230f69b 100644 (file)
@@ -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);
         }
     }
 }