From: cajus Date: Fri, 28 Aug 2009 09:43:30 +0000 (+0000) Subject: Only find adequat values X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7eada0d8c03ea6bbe6e0bf41a789de38715eba9e;p=gosa.git Only find adequat values git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14156 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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];