]> git.mjollnir.org Git - moodle.git/commitdiff
fixed a bug where wrong parameters is passed
authortoyomoyo <toyomoyo>
Tue, 19 Sep 2006 06:36:54 +0000 (06:36 +0000)
committertoyomoyo <toyomoyo>
Tue, 19 Sep 2006 06:36:54 +0000 (06:36 +0000)
user/index.php

index 903de4cb488464f3f15aaa53c5977702d9f0c4c5..29f07b172f0d7096f9dbbf914737c08fb6c4b8a2 100644 (file)
@@ -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.