mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
MDL-20169 fixed coding style, parameter type required
This commit is contained in:
parent
622365d2e1
commit
92ebcabeb3
16 changed files with 48 additions and 48 deletions
|
@ -311,7 +311,7 @@ if ((optional_param('addrandom', false, PARAM_BOOL) || $newrandomcategory) && co
|
|||
redirect($thispageurl);
|
||||
}
|
||||
|
||||
if (optional_param('addnewpagesafterselected', null) && !empty($selectedquestionids) && confirm_sesskey()) {
|
||||
if (optional_param('addnewpagesafterselected', null, PARAM_CLEAN) && !empty($selectedquestionids) && confirm_sesskey()) {
|
||||
foreach ($selectedquestionids as $questionid) {
|
||||
$quiz->questions = quiz_add_page_break_after($quiz->questions, $questionid);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue