From 2afb09563d16d759e9900c5e678ab7631a238811 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes <kjartan@2.no-reply.drupal.org> Date: Thu, 24 Oct 2002 14:29:00 +0000 Subject: [PATCH] - dont print empty row if there are no next or prev links to show in admin_overview. --- modules/comment.module | 4 +++- modules/comment/comment.module | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/comment.module b/modules/comment.module index f140b9404ad9..6dc192c73510 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -814,7 +814,9 @@ function comment_admin_overview($status = 0, $comment_page = 0) { $next_link = la(t("next comments"), array("mod" => "comment", "status" => $status, "comment_page" => ($comment_page + 1))); } - $output .= "<tr><td>$prev_link</td><td></td><td></td><td></td><td></td><td>$next_link</td></tr>"; + if ($prev_link || $next_link) { + $output .= "<tr><td>$prev_link</td><td></td><td></td><td></td><td></td><td>$next_link</td></tr>"; + } $output .= "</table>\n"; return $output; diff --git a/modules/comment/comment.module b/modules/comment/comment.module index f140b9404ad9..6dc192c73510 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -814,7 +814,9 @@ function comment_admin_overview($status = 0, $comment_page = 0) { $next_link = la(t("next comments"), array("mod" => "comment", "status" => $status, "comment_page" => ($comment_page + 1))); } - $output .= "<tr><td>$prev_link</td><td></td><td></td><td></td><td></td><td>$next_link</td></tr>"; + if ($prev_link || $next_link) { + $output .= "<tr><td>$prev_link</td><td></td><td></td><td></td><td></td><td>$next_link</td></tr>"; + } $output .= "</table>\n"; return $output; -- GitLab