Now course shortname is searched too, to avoid duplicates over it.

Bug 4607
(http://moodle.org/bugs/bug.php?op=show&bugid=4607)
This commit is contained in:
stronk7
2006-01-19 00:20:55 +00:00
parent 794b137865
commit 6840f49faf
+3 -2
View File
@@ -446,9 +446,10 @@
}
$currentfullname = $fullname.$suffixfull;
$currentshortname = $shortname.$suffixshort;
$course = get_record("course","fullname",addslashes($currentfullname));
$coursefull = get_record("course","fullname",addslashes($currentfullname));
$courseshort = get_record("course","shortname",addslashes($currentshortname));
$counter++;
} while ($course);
} while ($coursefull || $courseshort);
//New name = currentname
$course_header->course_fullname = $currentfullname;