Browse Source

fix error (is_null en remplacement de empty)

Bastien Sevajol 11 years ago
parent
commit
1bd7f0f0e1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/Muzich/CoreBundle/Searcher/ElementSearcherQueryBuilder.php

+ 2 - 2
src/Muzich/CoreBundle/Searcher/ElementSearcherQueryBuilder.php View File

@@ -247,8 +247,8 @@ class ElementSearcherQueryBuilder
247 247
             $tag_ids .= ','.(int)$tag_id;
248 248
           }
249 249
         }
250
-      
251
-        if (!empty(trim($tag_ids)))
250
+        
251
+        if (!is_null(trim($tag_ids)))
252 252
         {
253 253
           $sql = "SELECT et.element_id FROM elements_tag et "
254 254
           ."WHERE et.tag_id IN ($tag_ids) group by et.element_id "