summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-10-24 14:29:00 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-10-24 14:29:00 +0000
commit2afb09563d16d759e9900c5e678ab7631a238811 (patch)
tree2cb751b15b4255d18067beb66f2bc51ba2f56707 /modules
parent1e5813d4f49274ea64e2fc9165aaffad16b468bc (diff)
downloadbrdo-2afb09563d16d759e9900c5e678ab7631a238811.tar.gz
brdo-2afb09563d16d759e9900c5e678ab7631a238811.tar.bz2
- dont print empty row if there are no next or prev links to show in admin_overview.
Diffstat (limited to 'modules')
-rw-r--r--modules/comment.module4
-rw-r--r--modules/comment/comment.module4
2 files changed, 6 insertions, 2 deletions
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 .= "<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 f140b9404..6dc192c73 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;