a hack to fix bug 1598 regarding undefined $CFG->enrol

This commit is contained in:
gustav_delius
2004-06-29 21:16:58 +00:00
parent 238f4cb2da
commit be0bdec88c
+4
View File
@@ -13,6 +13,10 @@
if (!isset($CFG->wwwroot)) {
die;
}
if (!isset($CFG->enrol)) { // This is a hack to fix bug 1598
$CFG->enrol = 'internal';
}
/// If there are any errors in the standard libraries we want to know!
error_reporting(E_ALL);