From e3d227b93f0eed9957db9d1d3142fcb6a97adab1 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 12 Mar 2010 14:54:08 +0000 Subject: [PATCH] Avoid undefined index warnings git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16496 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_userFilter.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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. -- 2.30.2