Bläddra i källkod

Anomalie #732: Err. 500: Filtres tags

Bastien Sevajol 11 år sedan
förälder
incheckning
9e1d963b98
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/Muzich/CoreBundle/Searcher/ElementSearcherQueryBuilder.php

+ 1 - 1
src/Muzich/CoreBundle/Searcher/ElementSearcherQueryBuilder.php Visa fil

@@ -217,7 +217,7 @@ class ElementSearcherQueryBuilder
217 217
   private function buildStrict()
218 218
   {
219 219
     // Recherche strict ou non ?
220
-    if ($this->es->getTagStrict() && count(($tags = $this->es->getTags())))
220
+    if ($this->es->getTagStrict() && count(($tags = $this->es->getTags())) && $this->es->getTags() != '[]')
221 221
     {
222 222
       // On a besoin de récupérer la liste des element_id qui ont les tags
223 223
       // demandés.