Просмотр исходного кода

Merge pull request #1855 from Bladrak/fixedWrongTwigComparison

Fixed wrong twig comparison
Thomas 11 лет назад
Родитель
Сommit
6296dc63db
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Resources/views/Core/search.html.twig

+ 1 - 1
Resources/views/Core/search.html.twig

@@ -27,7 +27,7 @@ file that was distributed with this source code.
 
 
     <h1>{{ 'title_search_results'|trans({'%query%': query}, 'SonataAdminBundle') }}</h1>
     <h1>{{ 'title_search_results'|trans({'%query%': query}, 'SonataAdminBundle') }}</h1>
 
 
-    {% if query %}
+    {% if query is defined and query is not same as(false) %}
         {% set count = 0 %}
         {% set count = 0 %}
         <div class="row-fluid">
         <div class="row-fluid">