]> git.mjollnir.org Git - moodle.git/commitdiff
fixed another missing global $CFG
authorskodak <skodak>
Tue, 26 Sep 2006 08:49:47 +0000 (08:49 +0000)
committerskodak <skodak>
Tue, 26 Sep 2006 08:49:47 +0000 (08:49 +0000)
lib/dmllib.php

index 76080522c89e4b216dadeeba0cdfc3d1f7f3f93c..b8ffaa0084e512cda25621f2039a955b0b21f063 100644 (file)
@@ -758,6 +758,8 @@ function get_records_sql($sql, $limitfrom='', $limitnum='') {
  * @return mixed an associative array, or false if an error occured or the RecordSet was empty.
  */
 function recordset_to_menu($rs) {
+    global $CFG;
+
     if ($rs && $rs->RecordCount() > 0) {
         $keys = array_keys($rs->fields);
         $key0=$keys[0];