From: toyomoyo Date: Tue, 14 Mar 2006 08:07:57 +0000 (+0000) Subject: fixed a bug where userid is overwritten X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b7dc1805f3d3aaf13b9db886acc51bbd815a5675;p=moodle.git fixed a bug where userid is overwritten --- diff --git a/blog/header.php b/blog/header.php index f4c30e6496..9de0bb6f81 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 5b0b348043..a4b754d3f8 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;