Code

Avoid undefined index warnings
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Mar 2010 14:54:08 +0000 (14:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 12 Mar 2010 14:54:08 +0000 (14:54 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16496 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_userFilter.inc

index c7da3badbe3eb6ad75544067c77ad6da94b52c6d..331c6a921ab516f3b42221efe17281acba8cf135 100644 (file)
@@ -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.