fix array_map(): Argument #2 ($array) must be of type array, int given

This commit is contained in:
ralf 2023-05-25 09:44:58 +02:00
parent 9a5ed1efa3
commit 6dc1ae4b23

View File

@ -970,7 +970,7 @@ class Ads
} }
if (!empty($param['account_id'])) 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; $filter = $filter ? "(&$filter$account_ids_filter)" : $account_ids_filter;
} }
if (!empty($param['modified'])) if (!empty($param['modified']))