- Patch #8716 by webchick et al: small usability improvement: don't show empty tables.
parent
00758e24dc
commit
1ea9f06093
|
@ -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">';
|
||||
|
|
Loading…
Reference in New Issue