Changeset 1122

Show
Ignore:
Timestamp:
09/24/06 16:51:34 (2 years ago)
Author:
jm3
Message:

added error-check conditional so left-nav doesn't crash if there's no cart

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • peasantonline/app/views/catalog/_left_nav.rhtml

    r1102 r1122  
    11        <div id="left-nav"> 
    22 
    3                 <%= hidden_div_if(@cart.items.empty?, :id => "cart") %>  
     3                <% if @cart %> 
     4      <%= hidden_div_if(@cart.items.empty?, :id => "cart") %>  
    45                        <%= render(:partial => "catalog/cart", :object => @cart) %>  
    56                </div> 
     7    <% end %> 
    68 
    79                <span class="subhead">Shop by</span>