From be0bdec88c102318869da9fb0cde6e719597e54d Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Tue, 29 Jun 2004 21:16:58 +0000 Subject: [PATCH] a hack to fix bug 1598 regarding undefined $CFG->enrol --- lib/setup.php | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.39.5