diff --git a/app/models/book.rb b/app/models/book.rb index f2f25b6..a038946 100644 --- a/app/models/book.rb +++ b/app/models/book.rb @@ -63,7 +63,7 @@ class Book def self.get_plugin_datas_to_member(datas) page = Page.where(:module => "personal_book").first rescue nil - if page.custom_string_field == "table" + if !page.nil? && page.custom_string_field == "table" fields_to_show = [ "authors", "book_title",