Skip to content

Commit

Permalink
Merge branch 'MDL-49743-master' of git://github.com/danpoltawski/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Dec 22, 2015
2 parents 5dc7768 + a24abd5 commit 7814a99
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion grade/report/singleview/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,16 @@

$defaulttype = $userid ? 'user' : 'select';

$itemid = optional_param('itemid', $userid, PARAM_INT);
$itemid = optional_param('itemid', null, PARAM_INT);
$itemtype = optional_param('item', $defaulttype, PARAM_TEXT);
$page = optional_param('page', 0, PARAM_INT);
$perpage = optional_param('perpage', 100, PARAM_INT);

if (empty($itemid)) {
$itemid = $userid;
$itemtype = $defaulttype;
}

$courseparams = array('id' => $courseid);
$PAGE->set_url(new moodle_url('/grade/report/singleview/index.php', $courseparams));
$PAGE->set_pagelayout('incourse');
Expand Down

0 comments on commit 7814a99

Please sign in to comment.