MDL-20169 fixed coding style, parameter type required

This commit is contained in:
skodak 2009-08-27 19:14:45 +00:00
parent 622365d2e1
commit 92ebcabeb3
16 changed files with 48 additions and 48 deletions

View file

@ -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");
}

View file

@ -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");
}