diff --git a/vendor/built_in_modules/survey/app/models/survey.rb b/vendor/built_in_modules/survey/app/models/survey.rb
index 98f793e6..0ca9c6c7 100644
--- a/vendor/built_in_modules/survey/app/models/survey.rb
+++ b/vendor/built_in_modules/survey/app/models/survey.rb
@@ -51,15 +51,15 @@ class Survey
if ( self.result_type == Survey::ResultChart && self.deadline && Time.now > self.deadline ) ||
( self.result_type == Survey::ResultExtern && !self.extern_link.blank? ) ||
( self.result_type == Survey::ResultFile && self.upload_file? )
- ('').html_safe
+ ('').html_safe
else
''
end
end
def write
- if self.deadline && Time.now < self.deadline
- ('').html_safe
+ unless self.deadline && Time.now > self.deadline
+ ('').html_safe
else
''
end