mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
fix ldap_search(): Argument #1 ($ldap) must be of type LDAP|array, string given
This commit is contained in:
parent
702b3e9880
commit
b75f850197
@ -1099,7 +1099,7 @@ class Ldap
|
||||
{
|
||||
$attr = $which == 'account_lid' ? 'cn' : static::MAIL_ATTR;
|
||||
|
||||
if (($data = ldap_search($this->group_context, '(&('.$attr.'=' . $name . ")(objectclass=posixgroup)$this->group_filter)", ['gidNumber'])) &&
|
||||
if (($data = $this->_ldap_search($this->group_context, '(&('.$attr.'=' . $name . ")(objectclass=posixgroup)$this->group_filter)", ['gidNumber'])) &&
|
||||
!empty($data['gidnumber'][0]))
|
||||
{
|
||||
return -$data['gidnumber'][0];
|
||||
|
Loading…
Reference in New Issue
Block a user