]> git.mjollnir.org Git - moodle.git/commitdiff
Ported from MOODLE_14_STABLE. SC#62 - Prevent database values from overriding $CFG...
authormartinlanghoff <martinlanghoff>
Sun, 9 Jan 2005 21:54:48 +0000 (21:54 +0000)
committermartinlanghoff <martinlanghoff>
Sun, 9 Jan 2005 21:54:48 +0000 (21:54 +0000)
lib/setup.php

index f6a84f2c3bf1b62e74b19f593ef02061778ab371..cabc270f3f1fc56cff806988b5d2bbd914b9e8ce 100644 (file)
@@ -134,7 +134,9 @@ global $THEME;
     if ($configs = get_records('config')) {
         $CFG = (array)$CFG;
         foreach ($configs as $config) {
-            $CFG[$config->name] = $config->value;
+            if (!isset($CFG[$config->name])) {
+                $CFG[$config->name] = $config->value;
+            }
         }
 
         $CFG = (object)$CFG;