fix PHP Warning: explode() expects parameter 2 to be string, array given on line 375

This commit is contained in:
Ralf Becker 2017-05-03 18:01:21 +02:00
parent 8113908273
commit cac463749e

View File

@ -372,7 +372,7 @@ class Ldap extends Mail\Smtp
{
$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 (static::MAIL_ENABLE_ATTR)