From b2844777138843a5a5aae32465f230095ce20f2c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 29 Jun 2004 20:35:58 +0000 Subject: - Bug #8898 by Morbus: fixed incorrect date being displayed in the forum overview when a topic has no comments yet. --- modules/forum.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/forum.module') diff --git a/modules/forum.module b/modules/forum.module index 5b53a8305..3b9aa295f 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -316,7 +316,7 @@ function _forum_last_reply($nid) { } function _forum_format($topic) { - if ($topic) { + if ($topic && $topic->timestamp) { return t('%time ago
by %author', array('%time' => format_interval(time() - $topic->timestamp), '%author' => format_name($topic))); } else { -- cgit v1.2.3