From ba7d6558eed82ea883a4dd8d52564613ebb4c90d Mon Sep 17 00:00:00 2001 From: iCross Date: Sat, 25 May 2013 10:13:18 +0800 Subject: [PATCH] fix --- vendor/built_in_modules/survey/app/models/survey.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/built_in_modules/survey/app/models/survey.rb b/vendor/built_in_modules/survey/app/models/survey.rb index 57fa3998..98f793e6 100644 --- a/vendor/built_in_modules/survey/app/models/survey.rb +++ b/vendor/built_in_modules/survey/app/models/survey.rb @@ -58,7 +58,7 @@ class Survey end def write - if self.deadline || Time.now < self.deadline + if self.deadline && Time.now < self.deadline ('').html_safe else ''