small fix for page

This commit is contained in:
Harry Bomrah 2016-03-25 01:32:20 +08:00
parent 33acff9f10
commit 08f9af1761
1 changed files with 1 additions and 1 deletions

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",