From 2afb09563d16d759e9900c5e678ab7631a238811 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Thu, 24 Oct 2002 14:29:00 +0000 Subject: - dont print empty row if there are no next or prev links to show in admin_overview. --- modules/comment.module | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/comment.module') diff --git a/modules/comment.module b/modules/comment.module index f140b9404..6dc192c73 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 .= "$prev_link$next_link"; + if ($prev_link || $next_link) { + $output .= "$prev_link$next_link"; + } $output .= "\n"; return $output; -- cgit v1.2.3