From 1d50c1ca91180e09d68724407e93b38d9216b058 Mon Sep 17 00:00:00 2001 From: ralf Date: Fri, 30 Sep 2022 14:46:06 +0200 Subject: [PATCH] fix Api\Accounts::username(): Argument #1 ($account_id) must be of type ?int, string given --- admin/inc/class.admin_categories.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/inc/class.admin_categories.inc.php b/admin/inc/class.admin_categories.inc.php index 3dbfa81af8..69d71d1a4d 100644 --- a/admin/inc/class.admin_categories.inc.php +++ b/admin/inc/class.admin_categories.inc.php @@ -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; @@ -861,4 +861,4 @@ class admin_categories } } -admin_categories::init_static(); +admin_categories::init_static(); \ No newline at end of file