Add another sort, and move unset() of count portion of array

This commit is contained in:
Miles Lott 2004-01-26 02:56:11 +00:00
parent d0faa0770e
commit f3539ef370

View File

@ -164,8 +164,8 @@
if($addclass)
{
reset($entry[0]['objectclass']);
unset($replace['objectclass']['count']);
$replace['objectclass'] = $entry[0]['objectclass'];
unset($replace['objectclass']['count']);
$replace['objectclass'][] = 'phpgwAccount';
sort($replace['objectclass']);
ldap_mod_replace($ldap,$thisdn,$replace);
@ -278,6 +278,7 @@
$replace['objectclass'] = $entry[0]['objectclass'];
unset($replace['objectclass']['count']);
$replace['objectclass'][] = 'phpgwAccount';
sort($replace['objectclass']);
ldap_mod_replace($ldap,$thisdn,$replace);
unset($replace);
unset($addclass);