]> git.mjollnir.org Git - moodle.git/commitdiff
a hack to fix bug 1598 regarding undefined $CFG->enrol
authorgustav_delius <gustav_delius>
Tue, 29 Jun 2004 21:16:58 +0000 (21:16 +0000)
committergustav_delius <gustav_delius>
Tue, 29 Jun 2004 21:16:58 +0000 (21:16 +0000)
lib/setup.php

index 06e4dfab9554f394ce9a45d45f0e7aaeb0385b65..ba893bb92a5f4b31e5b57338f95b9960a175260c 100644 (file)
     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);