Skip to content

Commit

Permalink
fixed error at user_statistics admin view
Browse files Browse the repository at this point in the history
  • Loading branch information
katmastt committed Oct 18, 2023
1 parent 40ae8ff commit d3ce068
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/AdministrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit d3ce068

Please sign in to comment.