MDL-25338 optional param: newcourseidnumber is treated like required param resulting...
authorPetr Skoda <skodak@moodle.org>
Sat, 20 Nov 2010 02:27:34 +0000 (02:27 +0000)
committerPetr Skoda <skodak@moodle.org>
Sat, 20 Nov 2010 02:27:34 +0000 (02:27 +0000)
enrol/database/lib.php

index 5073aac..458c215 100644 (file)
@@ -488,7 +488,7 @@ class enrol_database_plugin extends enrol_plugin {
         $idnumber  = strtolower($this->get_config('newcourseidnumber'));
         $category  = strtolower($this->get_config('newcoursecategory'));
 
-        $fields = array($fullname, $shortname, $idnumber);
+        $fields = array($fullname, $shortname);
         if ($category) {
             $fields[] = $category;
         }