Commit dc69963d authored by Gábor Hojtsy's avatar Gábor Hojtsy

display info when no scheduled items available

parent ee60c934
......@@ -205,11 +205,17 @@ function scheduler_admin() {
l(t("delete node"), "admin/node/delete/$node->nid")
);
}
if ($pager = theme("pager", NULL, 50, 0, tablesort_pager())) {
$rows[] = array(array("data" => $pager, "colspan" => 6));
if (count($rows)) {
if ($pager = theme("pager", NULL, 50, 0, tablesort_pager())) {
$rows[] = array(array("data" => $pager, "colspan" => 6));
}
print theme("page", theme("table", $header, $rows));
}
else {
print theme("page", t('There are no scheduled nodes.'));
}
print theme("page", theme("table", $header, $rows));
}
// Generates a range for dates between $start and $end, but
......
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