Commit b024b3a1 authored by webchick's avatar webchick
Browse files

#679960 by aspilicious: Fixed 'Notice: undefined variable cids' when there are...

#679960 by aspilicious: Fixed 'Notice: undefined variable cids' when there are no comments available.
parent 1e7d70a4
......@@ -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(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment