]> git.mjollnir.org Git - moodle.git/commitdiff
$CFG required.
authorstronk7 <stronk7>
Mon, 4 Sep 2006 22:30:56 +0000 (22:30 +0000)
committerstronk7 <stronk7>
Mon, 4 Sep 2006 22:30:56 +0000 (22:30 +0000)
lib/dmllib.php

index bdfa5b83677b90bd38eabe744935fb08f2d32fb8..21322d3cd1865271f39dfdc2f017443061f141d3 100644 (file)
@@ -1286,7 +1286,7 @@ function sql_isnull($fieldname) {
  * @ return string the keyword
  */
 function sql_as() {
-    global $db;
+    global $CFG, $db;
 
     switch ($CFG->dbtype) {
         case 'postgres7':