Commit 5b7e4a9c authored by Dries's avatar Dries

- Bug #8898 by Morbus: fixed incorrect date being displayed in the forum...

- Bug #8898 by Morbus: fixed incorrect date being displayed in the forum overview when a topic has no comments yet.
parent 33e70c8d
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment