Skip to content

Commit

Permalink
MDL-10975 enrol_database_sync.php will run even if the plugin is disa…
Browse files Browse the repository at this point in the history
…bled - patch by Braden MacDonald; merged from MOODLE_19_STABLE
  • Loading branch information
skodak committed Jan 2, 2008
1 parent bc37088 commit a117919
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions enrol/database/enrol_database_sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit a117919

Please sign in to comment.