slight cleanup for a bit in Notice.php where a var was reused for different types, confusing tracking down a bug
This commit is contained in:
parent
f3d27cc3ae
commit
e2e1843639
@ -966,6 +966,9 @@ class Notice extends Memcached_DataObject
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array of integer profile IDs
|
||||||
|
*/
|
||||||
function saveReplies()
|
function saveReplies()
|
||||||
{
|
{
|
||||||
// Alternative reply format
|
// Alternative reply format
|
||||||
@ -1044,8 +1047,8 @@ class Notice extends Memcached_DataObject
|
|||||||
|
|
||||||
$recipientIds = array_keys($replied);
|
$recipientIds = array_keys($replied);
|
||||||
|
|
||||||
foreach ($recipientIds as $recipient) {
|
foreach ($recipientIds as $recipientId) {
|
||||||
$user = User::staticGet('id', $recipient);
|
$user = User::staticGet('id', $recipientId);
|
||||||
if ($user) {
|
if ($user) {
|
||||||
mail_notify_attn($user, $this);
|
mail_notify_attn($user, $this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user