From 6dc1ae4b23340fa1102d6ede0e36ef0742a99333 Mon Sep 17 00:00:00 2001 From: ralf Date: Thu, 25 May 2023 09:44:58 +0200 Subject: [PATCH] fix array_map(): Argument #2 ($array) must be of type array, int given --- api/src/Accounts/Ads.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Accounts/Ads.php b/api/src/Accounts/Ads.php index 18493eb6c3..f231d675e1 100644 --- a/api/src/Accounts/Ads.php +++ b/api/src/Accounts/Ads.php @@ -970,7 +970,7 @@ class Ads } if (!empty($param['account_id'])) { - $account_ids_filter = '(|(objectsid='.implode(')(objectsid=', array_map([$this, 'get_sid'], $param['account_id'])).')'; + $account_ids_filter = '(|(objectsid='.implode(')(objectsid=', array_map([$this, 'get_sid'], (array)$param['account_id'])).')'; $filter = $filter ? "(&$filter$account_ids_filter)" : $account_ids_filter; } if (!empty($param['modified']))