From 9979aceab035616297b1ba95ec33c9905a4fed2b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 15 Nov 2004 11:16:39 +0000 Subject: - Patch #12783 by Stefan: various small consistency/usability improvements. --- modules/node.module | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules/node.module') diff --git a/modules/node.module b/modules/node.module index 195cba7e8..75b6f4594 100644 --- a/modules/node.module +++ b/modules/node.module @@ -768,14 +768,18 @@ function node_admin_nodes() { $output .= "
$form
"; // 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 .= '

'. $filters[$filter][0] .'

'; -- cgit v1.2.3