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

This commit is contained in:
ralf 2024-12-04 16:05:07 +01:00
parent 8a2b358f2c
commit 7d5d25ffcc

View File

@ -843,7 +843,7 @@ class Ldap
if (!empty($param['account_id']))
{
// do we need a negated account_id filter
if (($not_account_ids = array_search('!', $param['account_id'])) !== false)
if (($not_account_ids = array_search('!', (array)$param['account_id'])) !== false)
{
$filter .= '(!';
unset($param['account_id'][$not_account_ids]);