From e64dfa80dd3119a39fca390f8716f6b14bc74449 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 4 Jun 2005 15:37:40 +0000 Subject: [PATCH] Changed name of the container category a bit and avoided one notice. --- mod/quiz/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/quiz/lib.php b/mod/quiz/lib.php index d234fd8931c..7180e1c9a70 100644 --- a/mod/quiz/lib.php +++ b/mod/quiz/lib.php @@ -299,8 +299,8 @@ function quiz_delete_course($course, $feedback=true) { //Create a container category in SITEID course if it doesn't exist if (!$concatid) { $concat->course = SITEID; - if (!$course->shortname) { - $course->shortname = $course->id .'('.get_string('deleted').')'; + if (!isset($course->shortname)) { + $course->shortname = 'id=' . $course->id; } $concat->name = get_string('savedfromdeletedcourse', 'quiz', $course->shortname); $concat->info = $concat->name;