From: gustav_delius Date: Tue, 29 Jun 2004 21:16:58 +0000 (+0000) Subject: a hack to fix bug 1598 regarding undefined $CFG->enrol X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=be0bdec88c102318869da9fb0cde6e719597e54d;p=moodle.git a hack to fix bug 1598 regarding undefined $CFG->enrol --- diff --git a/lib/setup.php b/lib/setup.php index 06e4dfab95..ba893bb92a 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -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);