From: tjhunt Date: Mon, 13 Aug 2007 11:19:51 +0000 (+0000) Subject: Notice on quiz config.html page. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dc5c68519e7ac8a2b931bfadb69ad86e54dbb27a;p=moodle.git Notice on quiz config.html page. --- diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index cd5e13f546..4c54e62fdc 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -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)) {