NOBUG course is not a required param (we assume site level if none specified)
authorMartin Dougiamas <martin@moodle.com>
Fri, 2 Jul 2010 08:43:27 +0000 (08:43 +0000)
committerMartin Dougiamas <martin@moodle.com>
Fri, 2 Jul 2010 08:43:27 +0000 (08:43 +0000)
mod/forum/user.php

index daa016b..0204128 100644 (file)
@@ -27,7 +27,7 @@ require_once('../../config.php');
 require_once('lib.php');
 
 // Course ID
-$course  = required_param('course', PARAM_INT);
+$course  = optional_param('course', SITEID, PARAM_INT);
 // User ID
 $id      = optional_param('id', 0, PARAM_INT);
 $mode    = optional_param('mode', 'posts', PARAM_ALPHA);