MDL-8537 Added $CFG as the object to check for enrol method when the course is being created.
MDL-8537 Added $CFG as the object to check for enrol method when the course is being created.

dilawar/moodle