Преглед изворни кода

Anomalie #732: Err. 500: Filtres tags

Bastien Sevajol пре 13 година
родитељ
комит
9e1d963b98
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/Muzich/CoreBundle/Searcher/ElementSearcherQueryBuilder.php

+ 1 - 1
src/Muzich/CoreBundle/Searcher/ElementSearcherQueryBuilder.php Прегледај датотеку

217
   private function buildStrict()
217
   private function buildStrict()
218
   {
218
   {
219
     // Recherche strict ou non ?
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
       // On a besoin de récupérer la liste des element_id qui ont les tags
222
       // On a besoin de récupérer la liste des element_id qui ont les tags
223
       // demandés.
223
       // demandés.