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

This commit is contained in:
ralf 2024-11-29 16:23:16 +01:00
parent 794609b179
commit eb3ae5c887

View File

@ -1062,7 +1062,7 @@ class Ads
}
if (!empty($param['account_id']))
{
if (($not_account_ids = array_search('!', $param['account_id'])) !== false)
if (($not_account_ids = array_search('!', (array)$param['account_id'])) !== false)
{
unset($param['account_id'][$not_account_ids]);
}