diff options
Diffstat (limited to 'modules/tracker/tracker.module')
-rw-r--r-- | modules/tracker/tracker.module | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module index 28b732a69..8a06631a1 100644 --- a/modules/tracker/tracker.module +++ b/modules/tracker/tracker.module @@ -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">'; |