diff --git a/app/views/branded/layouts/application.html.erb b/app/views/branded/layouts/application.html.erb index a7f139557..90b782ad0 100644 --- a/app/views/branded/layouts/application.html.erb +++ b/app/views/branded/layouts/application.html.erb @@ -4,15 +4,17 @@ - <% gkey = Rails.configuration.branding[:keys][:google_analytics_key] %> - - + <% if Rails.configuration.branding[:keys].present? %> + <% gkey = Rails.configuration.branding[:keys][:google_analytics_key] %> + + + <% end %> <%= content_for?(:title) ? yield(:title) : _('%{application_name}') % { :application_name => Rails.configuration.branding[:application][:name] } %>