|
@ -711,7 +711,7 @@ class mod_attendance_structure { |
|
|
|
|
|
|
|
|
if ($page) { |
|
|
if ($page) { |
|
|
$usersperpage = $this->pageparams->perpage; |
|
|
$usersperpage = $this->pageparams->perpage; |
|
|
if (!empty($CFG->enablegroupmembersonly) and $this->cm->groupmembersonly) { |
|
|
if (!empty($this->cm->groupingid)) { |
|
|
$startusers = ($page - 1) * $usersperpage; |
|
|
$startusers = ($page - 1) * $usersperpage; |
|
|
if ($groupid == 0) { |
|
|
if ($groupid == 0) { |
|
|
$groups = array_keys(groups_get_all_groups($this->cm->course, 0, $this->cm->groupingid, 'g.id')); |
|
|
$groups = array_keys(groups_get_all_groups($this->cm->course, 0, $this->cm->groupingid, 'g.id')); |
|
@ -728,7 +728,7 @@ class mod_attendance_structure { |
|
|
$orderby, $startusers, $usersperpage); |
|
|
$orderby, $startusers, $usersperpage); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
if (!empty($CFG->enablegroupmembersonly) and $this->cm->groupmembersonly) { |
|
|
if (!empty($this->cm->groupingid)) { |
|
|
if ($groupid == 0) { |
|
|
if ($groupid == 0) { |
|
|
$groups = array_keys(groups_get_all_groups($this->cm->course, 0, $this->cm->groupingid, 'g.id')); |
|
|
$groups = array_keys(groups_get_all_groups($this->cm->course, 0, $this->cm->groupingid, 'g.id')); |
|
|
} else { |
|
|
} else { |
|
|