From f3539ef370119f1ac33a731e89f2b4800b709ff4 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 26 Jan 2004 02:56:11 +0000 Subject: [PATCH] Add another sort, and move unset() of count portion of array --- setup/ldapmodify.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup/ldapmodify.php b/setup/ldapmodify.php index 11593d30f8..46d739e9e8 100644 --- a/setup/ldapmodify.php +++ b/setup/ldapmodify.php @@ -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);