Code

Updated update_accessTo function
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 Apr 2008 13:57:13 +0000 (13:57 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 10 Apr 2008 13:57:13 +0000 (13:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10332 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/functions.inc

index 7675ff23e7d502e8c01a834a67a6a615eb9915ef..961abc56a65296dd2956d70ccedb1935c1750b08 100644 (file)
@@ -2696,7 +2696,7 @@ function update_accessTo($from,$to)
   $ldap->cd($config->current['BASE']);
   $ldap->search("(&(objectClass=trustAccount)(accessTo=".$from."))",array("objectClass","accessTo"));
   while($attrs = $ldap->fetch()){
-    $new_attrs = array();
+    $new_attrs = array("accessTo" => array());
     $dn = $attrs['dn'];
     for($i = 0 ; $i < $attrs['objectClass']['count']; $i++){
       $new_attrs['objectClass'][] =  $attrs['objectClass'][$i];