Notice on quiz config.html page.

This commit is contained in:
tjhunt 2007-08-13 11:19:51 +00:00
parent 7e874772a3
commit dc5c68519e

View File

@ -570,8 +570,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)) {