- Patch #8716 by webchick et al: small usability improvement: don't show empty tables.

5.x
Dries Buytaert 2006-12-05 17:53:26 +00:00
parent 00758e24dc
commit 1ea9f06093
1 changed files with 5 additions and 0 deletions

View File

@ -91,6 +91,7 @@ function tracker_page($uid = 0) {
$result = pager_query($sql, 25, 0, $sql_count);
}
$rows = array();
while ($node = db_fetch_object($result)) {
// Determine the number of comments:
$comments = 0;
@ -112,6 +113,10 @@ function tracker_page($uid = 0) {
);
}
if (!$rows) {
$rows[] = array(array('data' => t('No posts available.'), 'colspan' => '5'));
}
$header = array(t('Type'), t('Post'), t('Author'), t('Replies'), t('Last post'));
$output = '<div id="tracker">';