]> git.mjollnir.org Git - moodle.git/commitdiff
merged fox for MDL-7300, mssql error on group creation
authortoyomoyo <toyomoyo>
Fri, 3 Nov 2006 08:18:29 +0000 (08:18 +0000)
committertoyomoyo <toyomoyo>
Fri, 3 Nov 2006 08:18:29 +0000 (08:18 +0000)
course/groups.php

index 208ee29c26c789447c22ff40cf5f084c65a393ab..c0ba9ba2c805f6621e851de8f52f43d4885dc56f 100644 (file)
                 $newgroup->courseid = $course->id;
                 $newgroup->lang = current_language();
                 $newgroup->timecreated = time();
+                $newgroup->description = ''; // can not be null MDL-7300
                 if (!insert_record("groups", $newgroup)) {
                     notify("Could not insert the new group '$newgroup->name'");
                 }