Skip to content

Commit

Permalink
MDL-31845 fix not-null constraint on idnumber
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Mar 10, 2012
1 parent e042c58 commit b6f7dbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enrol/database/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ public function sync_courses($verbose = false) {
$course = new stdClass();
$course->fullname = $fields[$fullname];
$course->shortname = $fields[$shortname];
$course->idnumber = $idnumber ? $fields[$idnumber] : NULL;
$course->idnumber = $idnumber ? $fields[$idnumber] : '';
$course->category = $category ? $coursecategory->id : NULL;
$createcourses[] = $course;
}
Expand Down

0 comments on commit b6f7dbe

Please sign in to comment.