From: toyomoyo Date: Tue, 19 Sep 2006 06:36:54 +0000 (+0000) Subject: fixed a bug where wrong parameters is passed X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9fe3be1b017b05a05ae2f5ed64b7a750d48c772f;p=moodle.git fixed a bug where wrong parameters is passed --- diff --git a/user/index.php b/user/index.php index 903de4cb48..29f07b172f 100644 --- a/user/index.php +++ b/user/index.php @@ -19,8 +19,8 @@ $search = optional_param('search','',PARAM_CLEAN); $roleid = optional_param('roleid', 0, PARAM_INT); // optional roleid - $contextid = optional_param('contextid', PARAM_INT); // one of this or - $courseid = optional_param('id', PARAM_INT); // this are required + $contextid = optional_param('contextid', 0, PARAM_INT); // one of this or + $courseid = optional_param('id', 0, PARAM_INT); // this are required $showteachers = $showteachers && empty($search); // if we're searching, we just want students.