fixed a bug where userid is overwritten

This commit is contained in:
toyomoyo
2006-03-14 08:07:57 +00:00
parent 772c526064
commit b7dc1805f3
2 changed files with 4 additions and 2 deletions
+4 -1
View File
@@ -12,7 +12,10 @@ $blockaction = optional_param('blockaction','', PARAM_ALPHA);
$instanceid = optional_param('instanceid', 0, PARAM_INT);
$blockid = optional_param('blockid', 0, PARAM_INT);
$groupid = optional_param('groupid', 0, PARAM_INT);
$userid = optional_param('userid', 0, PARAM_INT);
if (!isset($userid)) {
$userid = optional_param('userid', 0, PARAM_INT);
}
if (!isset($courseid)) {
$courseid = optional_param('courseid', SITEID, PARAM_INT);
-1
View File
@@ -155,7 +155,6 @@ switch ($filtertype) {
break;
}
//first set the start and end day equal to the day argument passed in from the get vars
$startday = $d;
$endday = $d + 1;