Browse Source

Anomalie #544: Err 500: search elements

Sevajol Bastien 12 years ago
parent
commit
48c252aea3
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/Muzich/CoreBundle/Searcher/ElementSearcherQueryBuilder.php

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

247
       ;
247
       ;
248
       
248
       
249
       $strict_element_ids = array();
249
       $strict_element_ids = array();
250
-      foreach ($strict_element_ids_result as $strict_id)
250
+      if (count($strict_element_ids_result))
251
       {
251
       {
252
-        $strict_element_ids[] = $strict_id['element_id'];
252
+        foreach ($strict_element_ids_result as $strict_id)
253
+        {
254
+          $strict_element_ids[] = $strict_id['element_id'];
255
+        }
253
       }
256
       }
254
       
257
       
255
       if (count($strict_element_ids))
258
       if (count($strict_element_ids))