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

Commit e2e18436 authored by Brion Vibber's avatar Brion Vibber

slight cleanup for a bit in Notice.php where a var was reused for different...

slight cleanup for a bit in Notice.php where a var was reused for different types, confusing tracking down a bug
parent f3d27cc3
......@@ -966,6 +966,9 @@ class Notice extends Memcached_DataObject
return true;
}
/**
* @return array of integer profile IDs
*/
function saveReplies()
{
// Alternative reply format
......@@ -1044,8 +1047,8 @@ class Notice extends Memcached_DataObject
$recipientIds = array_keys($replied);
foreach ($recipientIds as $recipient) {
$user = User::staticGet('id', $recipient);
foreach ($recipientIds as $recipientId) {
$user = User::staticGet('id', $recipientId);
if ($user) {
mail_notify_attn($user, $this);
}
......
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