summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-11-15 11:16:39 +0000
committerDries Buytaert <dries@buytaert.net>2004-11-15 11:16:39 +0000
commit9979aceab035616297b1ba95ec33c9905a4fed2b (patch)
tree37679df887bb271ddee3ba22f91a305c9ad6b40f /modules/node/node.module
parentc13abe16555a8a7f70021dae0cf9f3dd20e6c83d (diff)
downloadbrdo-9979aceab035616297b1ba95ec33c9905a4fed2b.tar.gz
brdo-9979aceab035616297b1ba95ec33c9905a4fed2b.tar.bz2
- Patch #12783 by Stefan: various small consistency/usability improvements.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 195cba7e8..75b6f4594 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -768,14 +768,18 @@ function node_admin_nodes() {
$output .= "<div class=\"container-inline\">$form</div>";
// Overview table:
- $header = array(NULL, t('Title'), t('Type'), t('Author'), t('Status'), array('data' => t('Operations'), 'colspan' => 2));
+ $header = array(NULL, t('Title'), t('Type'), t('Author'), t('Status'), array('data' => t('Operations'), 'colspan' => '2'));
while ($node = db_fetch_object($result)) {
$rows[] = array(form_checkbox(NULL, 'status]['. $node->nid, 1, 0), l($node->title, 'node/'. $node->nid) .' '. (node_is_new($node->nid, $node->changed) ? theme_mark() : ''), node_invoke($node, 'node_name'), format_name($node), ($node->status ? t('published') : t('not published')), l(t('edit'), 'node/'. $node->nid .'/edit'), l(t('delete'), 'admin/node/delete/'. $node->nid));
}
if ($pager = theme('pager', NULL, 50, 0)) {
- $rows[] = array(array('data' => $pager, 'colspan' => 7));
+ $rows[] = array(array('data' => $pager, 'colspan' => '7'));
+ }
+
+ if (!$rows) {
+ $rows[] = array(array('data' => t('No posts available.'), 'colspan' => '7'));
}
$output .= '<h3>'. $filters[$filter][0] .'</h3>';