From 06cac50810f83a74c1b2845f105e683b38d1fdde Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 Mar 2010 09:09:19 +0000 Subject: [PATCH] Updated filter to support single query entries git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16478 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_filter.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gosa-core/include/class_filter.inc b/gosa-core/include/class_filter.inc index cce1bae49..8733435bf 100644 --- a/gosa-core/include/class_filter.inc +++ b/gosa-core/include/class_filter.inc @@ -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) { -- 2.30.2