]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
slight cleanup for a bit in Notice.php where a var was reused for different types...
authorBrion Vibber <brion@pobox.com>
Fri, 11 Dec 2009 21:53:09 +0000 (13:53 -0800)
committerBrion Vibber <brion@pobox.com>
Wed, 16 Dec 2009 14:27:47 +0000 (09:27 -0500)
classes/Notice.php

index 4aec4ed55cde43e5f9f6424c1091c79978fb2239..01ed4e7f41a7c99cf30868c85608491bb7c344b1 100644 (file)
@@ -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);
             }