Changed name of the container category a bit and avoided one notice.

This commit is contained in:
stronk7
2005-06-04 15:37:40 +00:00
parent 4a4d46cade
commit e64dfa80dd
+2 -2
View File
@@ -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;