From cac463749e2b11f1794b6bb80065846043a1de4f Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 3 May 2017 18:01:21 +0200 Subject: [PATCH] fix PHP Warning: explode() expects parameter 2 to be string, array given on line 375 --- api/src/Mail/Smtp/Ldap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Mail/Smtp/Ldap.php b/api/src/Mail/Smtp/Ldap.php index ebb9e312c6..55d01e7503 100644 --- a/api/src/Mail/Smtp/Ldap.php +++ b/api/src/Mail/Smtp/Ldap.php @@ -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)