Index: notify.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/notify/notify.module,v
retrieving revision 2.68.2.26
diff -u -p -r2.68.2.26 notify.module
--- notify.module	5 Aug 2010 19:42:21 -0000	2.68.2.26
+++ notify.module	8 Oct 2010 01:45:00 -0000
@@ -540,20 +540,24 @@ function _notify_send($send_start = NULL
       if ($user->comment && user_access('access comments') && count($comments)) {
         $total_comment_count = 0;
         foreach ($comments as $nid => $comment) {
-          // If we don't already have the node, fetch it.
+          // If we don't already have the node, fetch it. We need to load up
+          // a new object, and not mess with the total length of $nodes.
           if (!isset($nodes[$nid])) {
-            $nodes[$nid] = node_load($nid);
+            $node = node_load($nid);
+          }
+          else {
+            $node = $node[$nid];
           }
 
           // Don't show comments if we're not allowed to view this node.
-          if (!node_access('view', $nodes[$nid])) {
+          if (!node_access('view', $node)) {
             continue;
           }
 
           if ($comment_body) {
             $comment_body .= $mini_separator ."\n\n";
           }
-          $comment_body .= t('!count attached to !type posted by !author: !title', array('!count' => format_plural(count($comment), '1 new comment', '@count new comments'), '!title' => $nodes[$nid]->title, '!type' => node_get_types('name', $nodes[$nid]), '!author' => $nodes[$nid]->name ? $nodes[$nid]->name : variable_get('anonymous', 'Anonymous'))) ."\n";
+          $comment_body .= t('!count attached to !type posted by !author: !title', array('!count' => format_plural(count($comment), '1 new comment', '@count new comments'), '!title' => $node->title, '!type' => node_get_types('name', $node), '!author' => $node->name ? $node->name : variable_get('anonymous', 'Anonymous'))) ."\n";
 
           $comment_count = 0;
             foreach ($comment as $c) {
