From: hickert Date: Fri, 12 Mar 2010 09:09:19 +0000 (+0000) Subject: Updated filter to support single query entries X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=06cac50810f83a74c1b2845f105e683b38d1fdde;p=gosa.git Updated filter to support single query entries git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16478 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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) {