From b024b3a1c2fa5fade50f362620ad1bc7001e1c95 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 11 Jan 2010 00:17:02 +0000 Subject: #679960 by aspilicious: Fixed 'Notice: undefined variable cids' when there are no comments available. --- modules/comment/comment.admin.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/comment/comment.admin.inc b/modules/comment/comment.admin.inc index 706b10ff2..69118f4e6 100644 --- a/modules/comment/comment.admin.inc +++ b/modules/comment/comment.admin.inc @@ -75,6 +75,8 @@ function comment_admin_overview($form, &$form_state, $arg) { ->limit(50) ->orderByHeader($header) ->execute(); + + $cids = array(); // We collect a sorted list of node_titles during the query to attach to the // comments later. @@ -89,7 +91,7 @@ function comment_admin_overview($form, &$form_state, $arg) { $destination = drupal_get_destination(); foreach ($comments as $comment) { - // Dequeue the first node title from the node_titles array and attach to + // Remove the first node title from the node_titles array and attach to // the comment. $comment->node_title = array_shift($node_titles); $options[$comment->cid] = array( -- cgit v1.2.3