small fix

This commit is contained in:
Harry Bomrah 2016-03-25 01:32:54 +08:00
parent 98ce21d67e
commit 47cf62d794
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class WritingConference
def self.get_plugin_datas_to_member(datas)
page = Page.where(:module => "personal_conference").first rescue nil
if page.custom_string_field == "table"
if !page.nil? && page.custom_string_field == "table"
fields_to_show = [
"authors",
"paper_title",