diff --git a/app/views/spree/static_content/show.html.erb b/app/views/spree/static_content/show.html.erb index 480abbab..56216f2c 100644 --- a/app/views/spree/static_content/show.html.erb +++ b/app/views/spree/static_content/show.html.erb @@ -12,7 +12,7 @@ <% end -%> <% content_for :sidebar do %> - <% if defined? @products && defined? @taxon %> + <% if defined?(@products) and defined?(@taxon) %> <%= render :partial => "spree/shared/filters" %> <% elsif defined? @taxonomies %> <%= render :partial => "spree/shared/taxonomies" %> @@ -23,4 +23,4 @@
<%= raw @page.body %>
-<% end %> \ No newline at end of file +<% end %>