summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDries Buytaert2004-06-29 20:36:39 (GMT)
committerDries Buytaert2004-06-29 20:36:39 (GMT)
commit5b7e4a9ccf7e0333dc5113d851cb0a3164c311c8 (patch)
tree8d0e5085bdef131bfe5a32a5a5a1cb97dbea67de
parent33e70c8db8682f11503c0524c37e8253fd33bc9f (diff)
- Bug #8898 by Morbus: fixed incorrect date being displayed in the forum overview when a topic has no comments yet.
-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 {