small fix for page

This commit is contained in:
harrybomrah committed 2016-03-25 01:32:20 +08:00
1 parent 33acff9f10
commit 08f9af1761
1 file changed
+1 -1
+1 -1
View File
@@ -72,7 +72,7 @@ class JournalPaper
def self.get_plugin_datas_to_member(datas)
page = Page.where(:module => "personal_journal").first rescue nil
if page.custom_string_field == "table"
if !page.nil? && page.custom_string_field == "table"
fields_to_show = [
"paper_title",
"journal_title",