summaryrefslogtreecommitdiffstats
path: root/modules/forum.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/forum.module')
-rw-r--r--modules/forum.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/forum.module b/modules/forum.module
index 711e2c8..e328215 100644
--- a/modules/forum.module
+++ b/modules/forum.module
@@ -259,7 +259,7 @@ function _forum_last_reply($nid) {
}
function _forum_format($topic) {
- if ($topic) {
+ if ($topic && $topic->timestamp) {
return t('%time ago<br />by %author', array('%time' => format_interval(time() - $topic->timestamp), '%author' => format_name($topic)));
}
else {