From 7eada0d8c03ea6bbe6e0bf41a789de38715eba9e Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 28 Aug 2009 09:43:30 +0000 Subject: [PATCH] Only find adequat values git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14156 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_filter.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/class_filter.inc b/gosa-core/include/class_filter.inc index 30f3cf291..0b5f1778a 100644 --- a/gosa-core/include/class_filter.inc +++ b/gosa-core/include/class_filter.inc @@ -486,7 +486,9 @@ class filter { foreach ($attributes as $attribute) { if (is_array($entry[$attribute])) { for ($i= 0; $i<$entry[$attribute]['count']; $i++) { - $res[]= $entry[$attribute][$i]; + if (mb_stristr($entry[$attribute][$i], $value)) { + $res[]= $entry[$attribute][$i]; + } } } else { $res[]= $entry[$attribute]; -- 2.30.2