fix fetch time

This commit is contained in:
yanxd 2013-12-10 20:36:19 +08:00
parent 0f93065ac4
commit 23785999f1
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ module WelcomeHelper
end
def topic_last_time topic
return topic.event_datetime unless topic.methods.to_s =~ %r[last_reply]
return topic.event_datetime if ( !(topic.methods.to_s =~ %r[last_reply]) && topic.last_reply.nil? )
topic.last_reply.event_datetime
end