mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-28 16:59:28 +01:00
fix PHP Warning: explode() expects parameter 2 to be string, array given on line 375
This commit is contained in:
parent
8113908273
commit
cac463749e
@ -372,7 +372,7 @@ class Ldap extends Mail\Smtp
|
|||||||
{
|
{
|
||||||
$to_or[] = '('.static::ALIAS_ATTR.'='.static::ALIAS_PREFIX.Api\Ldap::quote($user).')';
|
$to_or[] = '('.static::ALIAS_ATTR.'='.static::ALIAS_PREFIX.Api\Ldap::quote($user).')';
|
||||||
}
|
}
|
||||||
$filter = count($to_or) > 1 ? '(|'.explode('', $to_or).')' : $to_or[0];
|
$filter = count($to_or) > 1 ? '(|'.implode('', $to_or).')' : $to_or[0];
|
||||||
|
|
||||||
// if an enable attribute is set, only return enabled accounts
|
// if an enable attribute is set, only return enabled accounts
|
||||||
if (static::MAIL_ENABLE_ATTR)
|
if (static::MAIL_ENABLE_ATTR)
|
||||||
|
Loading…
Reference in New Issue
Block a user