mirror of
https://github.com/moodle/moodle.git
synced 2025-08-02 07:39:54 +02: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
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue