From f16cfd45fe53c3d7ef087536662360d0bbd814b8 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 7 Jun 2023 20:05:14 +0200 Subject: [PATCH] fix PHP TypeError: implode(): Argument #2 ($array) must be of type ?array, int given --- api/src/Accounts/Ldap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Accounts/Ldap.php b/api/src/Accounts/Ldap.php index 7f50905602..6918d53c93 100644 --- a/api/src/Accounts/Ldap.php +++ b/api/src/Accounts/Ldap.php @@ -819,7 +819,7 @@ class Ldap // only return given account_id's if (!empty($param['account_id'])) { - $filter .= '(|(uidNumber=' . implode(')(uidNumber=', $param['account_id']) . '))'; + $filter .= '(|(uidNumber=' . implode(')(uidNumber=', (array)$param['account_id']) . '))'; } if (!empty($param['modified'])) {