// base url for sorting by first/last name
$this->baseurl = 'index.php?id='.$this->courseid.'&perpage='.$this->get_pref('studentsperpage')
- .'&page='.$this->page.'&';
+ .'&page='.$this->page;
//
- $this->pbarurl = 'index.php?id='.$this->courseid.'&perpage='.$this->get_pref('studentsperpage').'&';
+ $this->pbarurl = 'index.php?id='.$this->courseid.'&perpage='.$this->get_pref('studentsperpage');
// Setup groups if requested
if ($this->get_pref('showgroups')) {
if ($this->sortitemid) {
if (!isset($SESSION->gradeuserreport->sort)) {
- $this->sortorder = $SESSION->gradeuserreport->sort = 'ASC';
+ $this->sortorder = $SESSION->gradeuserreport->sort = 'DESC';
} else {
// this is the first sort, i.e. by last name
if (!isset($SESSION->gradeuserreport->sortitemid)) {
- $this->sortorder = $SESSION->gradeuserreport->sort = 'ASC';
+ $this->sortorder = $SESSION->gradeuserreport->sort = 'DESC';
} else if ($SESSION->gradeuserreport->sortitemid == $this->sortitemid) {
// same as last sort
if ($SESSION->gradeuserreport->sort == 'ASC') {
$this->group_selector = ob_get_clean();
// update paging after group
- $this->baseurl .= 'group='.$this->currentgroup.'&';
- $this->pbarurl .= 'group='.$this->currentgroup.'&';
+ $this->baseurl .= 'group='.$this->currentgroup;
+ $this->pbarurl .= 'group='.$this->currentgroup;
if ($this->currentgroup) {
$this->groupsql = " LEFT JOIN {$CFG->prefix}groups_members gm ON gm.userid = u.id ";