Commit 1ea9f060 authored by Dries's avatar Dries
Browse files

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

parent 00758e24
......@@ -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">';
......
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