From dc5c68519e7ac8a2b931bfadb69ad86e54dbb27a Mon Sep 17 00:00:00 2001 From: tjhunt Date: Mon, 13 Aug 2007 11:19:51 +0000 Subject: [PATCH] Notice on quiz config.html page. --- mod/quiz/lib.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)) { -- 2.39.5