Code

Updated userManagement.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Feb 2008 08:54:56 +0000 (08:54 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 22 Feb 2008 08:54:56 +0000 (08:54 +0000)
-Use get_sub_list in a correct way.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9050 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/users/class_userManagement.inc

index a11701c4c768f7289b39556b6461c3203acda7c1..6af909014bacb2ce822ba965a07a4ea780f4561b 100644 (file)
@@ -960,11 +960,11 @@ class userManagement extends plugin
     $ldap= $this->config->get_ldap_link(TRUE);
 
     if ($SubSearch){
-      $ListTemp =  get_sub_list($filter, "users", preg_replace("/,.*$/","",get_people_ou()),$base,
+      $ListTemp =  get_sub_list($filter, "users", get_people_ou(),$base,
                             array("uid", "givenName", "sn", "objectClass","userPassword"), GL_SUBSEARCH | GL_SIZELIMIT);
     } else {
       $base= get_people_ou().$base;
-      $ListTemp = get_sub_list($filter, "users", preg_replace("/,.*$/","",get_people_ou()),$base, 
+      $ListTemp = get_sub_list($filter, "users", get_people_ou(),$base, 
                             array("uid", "givenName", "sn", "objectClass","userPassword"), GL_SIZELIMIT);
     }
     $SortTemp = array();