From 34f2a964f9b695386ab83339d37e4595987a7f14 Mon Sep 17 00:00:00 2001 From: gbateson Date: Tue, 22 May 2007 04:28:27 +0000 Subject: [PATCH] use PARAM_ALPHANUM on "section" parameter so that "section=all" is allowed --- mod/hotpot/index.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 { -- 2.39.5