mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +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
|
@ -83,7 +83,7 @@
|
|||
break;
|
||||
case 'update':
|
||||
if (confirm_sesskey() and $form = data_submitted()) {
|
||||
if (optional_param('cancel', 0)) {
|
||||
if (optional_param('cancel', 0, PARAM_RAW)) {
|
||||
redirect("$CFG->wwwroot/mod/lesson/essay.php?id=$cm->id");
|
||||
}
|
||||
|
||||
|
|
|
@ -157,7 +157,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
} else if ($lesson->highscores and !$lesson->practice and !optional_param('viewed', 0) and empty($pageid)) {
|
||||
} else if ($lesson->highscores and !$lesson->practice and !optional_param('viewed', 0, PARAM_INT) and empty($pageid)) {
|
||||
// Display high scores before starting lesson
|
||||
redirect("$CFG->wwwroot/mod/lesson/highscores.php?id=$cm->id");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue