From: hickert Date: Thu, 10 Apr 2008 13:57:13 +0000 (+0000) Subject: Updated update_accessTo function X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=24b5e47233a122b709522f9684b4ea110dfc7d07;p=gosa.git Updated update_accessTo function git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10332 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 7675ff23e..961abc56a 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -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];