mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
Notice on quiz config.html page. - backported from HEAD.
This commit is contained in:
parent
80289b2543
commit
1138529ffa
1 changed files with 4 additions and 2 deletions
|
@ -469,8 +469,10 @@ function quiz_process_options(&$quiz) {
|
|||
$quiz->preventlate = 0;
|
||||
}
|
||||
|
||||
// Quiz name (now a required field).
|
||||
$quiz->name = trim($quiz->name);
|
||||
// Quiz name.
|
||||
if (!empty($quiz->name)) {
|
||||
$quiz->name = trim($quiz->name);
|
||||
}
|
||||
|
||||
// Time limit. (Get rid of it if the checkbox was not ticked.)
|
||||
if (empty($quiz->timelimitenable)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue