diff options
author | Brion Vibber <brion@pobox.com> | 2009-12-11 13:53:09 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2009-12-16 09:27:47 -0500 |
commit | e2e184363962b10ddbcd6f04d28f83d92ba67b7c (patch) | |
tree | 0af704eaab7d4664f7b2810e8b2d74e25c098902 /classes | |
parent | f3d27cc3ae92e2b7412dd998d7de7a2b58dc8e6a (diff) |
slight cleanup for a bit in Notice.php where a var was reused for different types, confusing tracking down a bug
Diffstat (limited to 'classes')
-rw-r--r-- | classes/Notice.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/classes/Notice.php b/classes/Notice.php index 4aec4ed55..01ed4e7f4 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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); } |