diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-11 00:17:02 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-11 00:17:02 +0000 |
commit | b024b3a1c2fa5fade50f362620ad1bc7001e1c95 (patch) | |
tree | f71a7a2c4ec17955927ce9e449b30d51c8d4828d /modules/comment/comment.admin.inc | |
parent | 1e7d70a44ca25c86e5546dd1045feb64482bd6e1 (diff) | |
download | brdo-b024b3a1c2fa5fade50f362620ad1bc7001e1c95.tar.gz brdo-b024b3a1c2fa5fade50f362620ad1bc7001e1c95.tar.bz2 |
#679960 by aspilicious: Fixed 'Notice: undefined variable cids' when there are no comments available.
Diffstat (limited to 'modules/comment/comment.admin.inc')
-rw-r--r-- | modules/comment/comment.admin.inc | 4 |
1 files changed, 3 insertions, 1 deletions
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( |