We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 2ea17b07 authored by Evan Prodromou's avatar Evan Prodromou

use references for Notice::_setFaves() and Notice::_setRepeats()

parent a053d96b
......@@ -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);
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment