From 6de2a7b6c8ece737fe98f59ef9aacee517dad2f5 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 26 Sep 2006 08:49:47 +0000 Subject: [PATCH] fixed another missing global $CFG --- lib/dmllib.php | 2 ++ 1 file changed, 2 insertions(+) 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]; -- 2.39.5