From d3ce068d1027f82b8d44c23c1a6d6b39d04ff173 Mon Sep 17 00:00:00 2001 From: katmastt Date: Wed, 18 Oct 2023 12:45:48 +0000 Subject: [PATCH] fixed error at user_statistics admin view --- controllers/AdministrationController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/AdministrationController.php b/controllers/AdministrationController.php index b620bac..8f9869f 100644 --- a/controllers/AdministrationController.php +++ b/controllers/AdministrationController.php @@ -832,8 +832,8 @@ public function actionUserStatistics($id) return $this->redirect(['/administration/user-stats-list']); } $username=explode('@',$user->username)[0]; - $usage_owner=Project::userStatisticsOwner($user->id); - $usage_participant=Project::userStatisticsParticipant($user->id); + $usage_owner=Project::userStatisticsOwner($user->id,$user->username); + $usage_participant=Project::userStatisticsParticipant($user->id,$user->username); return $this->render('user_statistics', ['usage_participant'=>$usage_participant,'usage_owner'=>$usage_owner, 'username'=>$username]); }