MDL-10975 enrol_database_sync.php will run even if the plugin is disabled - patch by Braden MacDonald; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2008-01-02 22:36:31 +00:00
parent bc37088926
commit a117919527

View File

@ -14,6 +14,12 @@
// ensure errors are well explained
$CFG->debug=E_ALL;
if (!is_enabled_enrol('database')) {
error_log("Database enrol plugin not enabled!");
die;
}
// update enrolments -- these handlers should autocreate courses if required
$enrol = new enrolment_plugin_database();