From: hickert Date: Fri, 12 Mar 2010 14:54:08 +0000 (+0000) Subject: Avoid undefined index warnings X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e3d227b93f0eed9957db9d1d3142fcb6a97adab1;p=gosa.git Avoid undefined index warnings git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16496 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_userFilter.inc b/gosa-core/include/class_userFilter.inc index c7da3badb..331c6a921 100644 --- a/gosa-core/include/class_userFilter.inc +++ b/gosa-core/include/class_userFilter.inc @@ -81,8 +81,10 @@ class userFilter extends plugin // Get filters and their backends $queries = array(); foreach(split(",", $filterList) as $data){ - list($filter, $backend) = preg_split('/:/', $data); - $queries[] = array('backend' => $backend, 'filter' => base64_decode($filter)); + if(!empty($data)){ + list($filter, $backend) = preg_split('/:/', $data); + $queries[] = array('backend' => $backend, 'filter' => base64_decode($filter)); + } } // build up filter entry.