use references for Notice::_setFaves() and Notice::_setRepeats()
This commit is contained in:
parent
a053d96bf2
commit
2ea17b0749
@ -2631,7 +2631,8 @@ class Notice extends Managed_DataObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach ($notices as $notice) {
|
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);
|
$ids = self::_idsOf($notices);
|
||||||
$repeatMap = Memcached_DataObject::listGet('Notice', 'repeat_of', $ids);
|
$repeatMap = Memcached_DataObject::listGet('Notice', 'repeat_of', $ids);
|
||||||
foreach ($notices as $notice) {
|
foreach ($notices as $notice) {
|
||||||
$notice->_setRepeats($repeatMap[$notice->id]);
|
$repeats = $repeatMap[$notice->id];
|
||||||
|
$notice->_setRepeats(&$repeats);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user