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 f093762d19
commit a47809ba2a

View File

@ -291,7 +291,7 @@ class Accounts
// implement $param['hidden'] via $param['account_id']
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']);