Template/default/viewSearch : Not display predefinedFilters when no filter is defined.
authorBenjamin Renard <brenard@easter-eggs.com>
Fri, 19 Feb 2010 13:50:07 +0000 (14:50 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Fri, 19 Feb 2010 13:50:07 +0000 (14:50 +0100)
public_html/templates/default/viewSearch.tpl

index 499b4d7..f340138 100644 (file)
@@ -28,7 +28,7 @@
 </ul>
 {/if}
 
-{if ! empty($LSsearch)}
+{if count($LSsearch->predefinedFilters) != 0}
   <select id='LSview_search_predefinedFilter' name='predefinedFilter'>
     <option value=''>--</option>
     {html_options options=$LSsearch->predefinedFilters selected=$searchForm.predefinedFilter}