]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-10975 enrol_database_sync.php will run even if the plugin is disabled - patch...
authorskodak <skodak>
Wed, 2 Jan 2008 22:36:31 +0000 (22:36 +0000)
committerskodak <skodak>
Wed, 2 Jan 2008 22:36:31 +0000 (22:36 +0000)
enrol/database/enrol_database_sync.php

index 39928120bdfb037f61791d9f373f35290aaa09a1..322b1b2395cc90a42f39155536ccea34bf5cbaa9 100644 (file)
 
     // 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();