diff --git a/phpgwapi/inc/class.accounts_ldap.inc.php b/phpgwapi/inc/class.accounts_ldap.inc.php index 74b9afd4a2..89b1bad0d2 100644 --- a/phpgwapi/inc/class.accounts_ldap.inc.php +++ b/phpgwapi/inc/class.accounts_ldap.inc.php @@ -447,7 +447,7 @@ if($wasAccount) { // remove the user from any group he is member of - $filter = "(&(objectclass=posixgroup)(memberuid=" . (int)$accountID . "))"; + $filter = "(&(objectclass=posixgroup)(memberuid=" . $accountID . "))"; $justThese = array('memberuid','gidnumber'); $sri = ldap_search($this->ds, $this->group_context, $filter, $justThese); if($sri)