Notice on quiz config.html page. - backported from HEAD.

This commit is contained in:
tjhunt 2007-08-13 11:20:59 +00:00
parent 80289b2543
commit 1138529ffa

View file

@ -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)) {