From: gbateson Date: Tue, 22 May 2007 04:28:27 +0000 (+0000) Subject: use PARAM_ALPHANUM on "section" parameter so that "section=all" is allowed X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=34f2a964f9b695386ab83339d37e4595987a7f14;p=moodle.git use PARAM_ALPHANUM on "section" parameter so that "section=all" is allowed --- diff --git a/mod/hotpot/index.php b/mod/hotpot/index.php index 35eb2e01b5..c50c0c07b6 100644 --- a/mod/hotpot/index.php +++ b/mod/hotpot/index.php @@ -45,7 +45,12 @@ $next_url = "$CFG->wwwroot/course/view.php?id=$course->id"; // get display section, if any - $section = optional_param('section', 0, PARAM_INT); + $section = optional_param('section', 0, PARAM_ALPHANUM); + if ($section=='all') { + // do nothing + } else { + $section = intval($section); + } if ($section) { $displaysection = course_set_display($course->id, $section); } else {