- Bug #8898 by Morbus: fixed incorrect date being displayed in the forum overview when a topic has no comments yet.
parent
8edcb47063
commit
b284477713
|
@ -316,7 +316,7 @@ function _forum_last_reply($nid) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _forum_format($topic) {
|
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)));
|
return t('%time ago<br />by %author', array('%time' => format_interval(time() - $topic->timestamp), '%author' => format_name($topic)));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -316,7 +316,7 @@ function _forum_last_reply($nid) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _forum_format($topic) {
|
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)));
|
return t('%time ago<br />by %author', array('%time' => format_interval(time() - $topic->timestamp), '%author' => format_name($topic)));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue