fix Api\Accounts::hidden2account_id(): Argument #2 ($account_ids) must be of type ?array, int given

This commit is contained in:
ralf 2024-11-06 17:37:14 +01:00
parent 1b9b20f220
commit 2a8a2a87b0

View File

@ -291,7 +291,7 @@ class Accounts
// implement $param['hidden'] via $param['account_id'] // implement $param['hidden'] via $param['account_id']
if (isset($param['hidden']) && !in_array($param['type'],['groups', 'owngroups'])) if (isset($param['hidden']) && !in_array($param['type'],['groups', 'owngroups']))
{ {
$param['account_id'] = self::hidden2account_id($param['hidden'], $param['account_id']); $param['account_id'] = self::hidden2account_id($param['hidden'], (array)$param['account_id']);
} }
unset($param['hidden']); unset($param['hidden']);