From: Andreas Gohr Date: Tue, 31 Jan 2006 11:09:21 +0000 (+0100) Subject: fix for removing tags through ajax X-Git-Tag: 0.7.1~93 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=439e00339297df6cd512cb876b6ba6cf3af1f4f7;p=contagged fix for removing tags through ajax darcs-hash:20060131110921-6e07b-c16feedc1fae07b68b26c2987ddd9c97aa86ac8d.gz --- diff --git a/ajax.php b/ajax.php index 75da75a..fafe45a 100644 --- a/ajax.php +++ b/ajax.php @@ -46,9 +46,10 @@ function ajax_settags($dn,$tags){ $tags = explode(',',$tags); $tags = array_map('trim',$tags); $tags = array_unique($tags); + $tags = array_diff($tags, array('')); //strip empty ones $entry['marker'] = $tags; - ldap_modify($LDAP_CON,$dn,$entry); + ldap_mod_replace($LDAP_CON,$dn,$entry); foreach ($tags as $tag){ print '