From b7dc1805f3d3aaf13b9db886acc51bbd815a5675 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Tue, 14 Mar 2006 08:07:57 +0000 Subject: [PATCH] fixed a bug where userid is overwritten --- blog/header.php | 5 ++++- blog/index.php | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) 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; -- 2.39.5