diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-06-29 20:35:58 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-06-29 20:35:58 +0000 |
commit | b2844777138843a5a5aae32465f230095ce20f2c (patch) | |
tree | 46432ef96ab183d4bb53516d01e1efa3a0912566 /modules | |
parent | 8edcb47063c48ade2a213cff7517a3845587f0f9 (diff) | |
download | brdo-b2844777138843a5a5aae32465f230095ce20f2c.tar.gz brdo-b2844777138843a5a5aae32465f230095ce20f2c.tar.bz2 |
- Bug #8898 by Morbus: fixed incorrect date being displayed in the forum overview when a topic has no comments yet.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/forum.module | 2 | ||||
-rw-r--r-- | modules/forum/forum.module | 2 |
2 files changed, 2 insertions, 2 deletions
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<br />by %author', array('%time' => format_interval(time() - $topic->timestamp), '%author' => format_name($topic))); } else { diff --git a/modules/forum/forum.module b/modules/forum/forum.module index 5b53a8305..3b9aa295f 100644 --- a/modules/forum/forum.module +++ b/modules/forum/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<br />by %author', array('%time' => format_interval(time() - $topic->timestamp), '%author' => format_name($topic))); } else { |