fix Api\Accounts::username(): Argument #1 ($account_id) must be of type ?int, string given

This commit is contained in:
ralf 2022-09-30 14:46:06 +02:00
parent b6398c4059
commit 1d50c1ca91

View File

@ -290,7 +290,7 @@ class admin_categories
}
if($this->appname == 'admin' || ($content['id'] && !((int)$content['owner'] > 0)))
{
if($content['owner'] > 0)
if((int)$content['owner'] > 0)
{
$content['msg'] .= "\n".lang('owner "%1" removed, please select group-owner', Api\Accounts::username($content['owner']));
$content['owner'] = 0;