diff --git a/blog/header.php b/blog/header.php index f4c30e64968..9de0bb6f819 100755 --- a/blog/header.php +++ b/blog/header.php @@ -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); diff --git a/blog/index.php b/blog/index.php index 5b0b3480434..a4b754d3f8a 100755 --- a/blog/index.php +++ b/blog/index.php @@ -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;