Code

Updated filter to support single query entries
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Mar 2010 09:09:19 +0000 (09:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Mar 2010 09:09:19 +0000 (09:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16478 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_filter.inc

index cce1bae49185f90c5eb22d4c6bb1b6231db6f8d4..8733435bf49eefdd70cb6a54b5aaac2fd1e42e2c 100644 (file)
@@ -71,6 +71,11 @@ class filter {
         $searches= $this->xmlData['search'];
       }
 
+      // Fix problem with only one defined query.
+      if(isset($this->xmlData['search']['query'])){
+        $this->xmlData['search'] = array($this->xmlData['search']);
+      }
+
       /* Store available searches */
       foreach ($this->xmlData['search'] as $search) {