Skip to content

Commit

Permalink
MDL-9207 Changed $extcourse to $coursefield in lines 92 to 111
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Apr 5, 2007
1 parent 3005294 commit a2ff2e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions enrol/database/enrol.php
Expand Up @@ -92,16 +92,16 @@ function setup_enrolments(&$user) {
$course = get_record('course', $CFG->enrol_localcoursefield, $coursefield);
if (!is_object($course)) {
if (empty($CFG->enrol_db_autocreate)) { // autocreation not allowed
print "Course $extcourse does not exist, skipping\n";
print "Course $coursefield does not exist, skipping\n";
continue; // next foreach course
}
// ok, now then let's create it!
print "Creating Course $extcourse...";
print "Creating Course $coursefield...";
// prepare any course properties we actually have
$course = new StdClass;
$course->{$CFG->enrol_localcoursefield} = $extcourse;
$course->fullname = $extcourse;
$course->shortname = $extcourse;
$course->{$CFG->enrol_localcoursefield} = $coursefield;
$course->fullname = $coursefield;
$course->shortname = $coursefield;
if ($newcourseid = $this->create_course($course, true)
and $course = get_record( 'course', 'id', $newcourseid)) {
// we are skipping fix_course_sortorder()
Expand Down

0 comments on commit a2ff2e0

Please sign in to comment.