]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix deprecated call-time pass by references
authorZach Copley <zach@status.net>
Tue, 23 Aug 2011 16:52:48 +0000 (09:52 -0700)
committerZach Copley <zach@status.net>
Tue, 23 Aug 2011 16:52:48 +0000 (09:52 -0700)
classes/Notice.php

index 3cbb2edd3da3122487b5ef325f17d8770a812937..15696f6eefe420538c94658d8d5b2362320269bb 100644 (file)
@@ -2643,7 +2643,7 @@ class Notice extends Managed_DataObject
         }
         foreach ($notices as $notice) {
                $faves = $faveMap[$notice->id];
-            $notice->_setFaves(&$faves);
+            $notice->_setFaves($faves);
         }
     }
 
@@ -2684,7 +2684,7 @@ class Notice extends Managed_DataObject
         $repeatMap = Memcached_DataObject::listGet('Notice', 'repeat_of', $ids);
         foreach ($notices as $notice) {
                $repeats = $repeatMap[$notice->id];
-            $notice->_setRepeats(&$repeats);
+            $notice->_setRepeats($repeats);
         }
     }
 }