Commit 2afb0956 authored by Kjartan's avatar Kjartan

- dont print empty row if there are no next or prev links to show in admin_overview.

parent 1e5813d4
......@@ -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;
......
......@@ -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;
......
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