From: skodak Date: Tue, 26 Sep 2006 08:49:47 +0000 (+0000) Subject: fixed another missing global $CFG X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6de2a7b6c8ece737fe98f59ef9aacee517dad2f5;p=moodle.git fixed another missing global $CFG --- diff --git a/lib/dmllib.php b/lib/dmllib.php index 76080522c8..b8ffaa0084 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -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];