summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6edc32c)
raw | patch | inline | side by side (parent: 6edc32c)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 16 Mar 2010 07:34:55 +0000 (07:34 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 16 Mar 2010 07:34:55 +0000 (07:34 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16574 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_filter.inc | patch | blob | history |
index 666443e5d55ba0f029ef90e4197450d5322e17cb..57057165b2d5827b0a37a27911ae9ffd808e425b 100644 (file)
// Handle converters if present
if ($this->converter) {
preg_match('/([^:]+)::(.*)$/', $this->converter, $m);
- $filter= call_user_func(array($m[1], $m[2]), preg_replace('/\$/', $this->value, $filter));
+ if ($this->value == "") {
+ $filter= call_user_func(array($m[1], $m[2]), preg_replace('/\$/', "*", $filter));
+ } else {
+ $filter= call_user_func(array($m[1], $m[2]), preg_replace('/\$/', $this->value, $filter));
+ }
}
// Do not replace escaped \$ - This is required to be able to search for e.g. windows machines.