Explorar el Código

fix error (is_null en remplacement de empty)

Bastien Sevajol hace 11 años
padre
commit
1bd7f0f0e1

+ 2 - 2
src/Muzich/CoreBundle/Searcher/ElementSearcherQueryBuilder.php Ver fichero

@@ -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 "