fix typo causing name2id() to fail and no members to be returned and therefore existing ones removed in the sync

This commit is contained in:
ralf 2024-08-19 11:33:47 +02:00
parent 4a18963650
commit d0ce70e563

View File

@ -1118,7 +1118,7 @@ class Ldap
}
if (($data = $this->_ldap_search($this->user_context, '(&('.$to_ldap[$which].'=' . $name . ')(objectclass=posixaccount))', array('uidNumber'))) &&
!empty($data['uidNumber'][0]))
!empty($data['uidnumber'][0]))
{
return (int)$data['uidnumber'][0];
}