app/helpers/admin/pages_helper.rb in radiant-0.7.2 vs app/helpers/admin/pages_helper.rb in radiant-0.8.0
- old
+ new
@@ -5,10 +5,10 @@
def class_of_page
@page.class
end
def filter
- @page.parts.first.filter
+ @page.parts.empty? ? nil : @page.parts.first.filter
end
def meta_errors?
!!(@page.errors[:slug] or @page.errors[:breadcrumb])
end