From 168bb01439120610fa8bcf1960910e28e2b7fbfc Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Thu, 7 Feb 2013 18:25:18 +1100 Subject: [PATCH] allow for empty headers properly --- app/models/site_customization.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/site_customization.rb b/app/models/site_customization.rb index 625b907ce..3b455785c 100644 --- a/app/models/site_customization.rb +++ b/app/models/site_customization.rb @@ -75,7 +75,11 @@ footer:after{ content: '#{error}' }" def self.custom_header(preview_style) preview_style ||= enabled_style style = lookup_style(preview_style) - style.header.html_safe if style + if style && style.header + style.header.html_safe + else + "" + end end def self.override_default_style(preview_style)