fix fetch time

exceptionHandle
yanxd 12 years ago
parent 0f93065ac4
commit 23785999f1

@ -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

Loading…
Cancel
Save