small fix

This commit is contained in:
Harry Bomrah 2016-03-25 01:37:18 +08:00
parent 47cf62d794
commit ac35478326
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class WritingConference
pd_data = []
fields_to_show.collect do |t|
if page.custom_string_field == "table"
if !page.nil? && page.custom_string_field == "table"
case t
when "paper_title"
pd_data << { "data_title" => "<a href='#{OrbitHelper.url_to_plugin_show(p.to_param,'personal_conference')}' target='_blank'>#{p.paper_title}</a>" }