From c4a6b6fe91d4e89102dea3a0195bebc27cb37ee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Loguercio?= Date: Wed, 14 Oct 2015 09:17:03 -0500 Subject: [PATCH] Fixes an error in certificate report when you are a Student Boss - Refs BT #7683 --- main/inc/lib/usergroup.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/inc/lib/usergroup.lib.php b/main/inc/lib/usergroup.lib.php index 5c53ef2fe3..f57b13efcb 100755 --- a/main/inc/lib/usergroup.lib.php +++ b/main/inc/lib/usergroup.lib.php @@ -2218,14 +2218,14 @@ class UserGroup extends Model * @param boolean $includeSubgroupsUsers Optional. Whether include the users from subgroups * @return array */ - public static function getGroupUsersByUser( + public function getGroupUsersByUser( $userId, $relationType = GROUP_USER_PERMISSION_ADMIN, $includeSubgroupsUsers = true ) { $userId = intval($userId); - $groups = self::get_groups_by_user($userId, $relationType); + $groups = $this->get_groups_by_user($userId, $relationType); $groupsId = array_keys($groups); $subgroupsId = [];