mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
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:
parent
bc37088926
commit
a117919527
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user