fixed another missing global $CFG

This commit is contained in:
skodak 2006-09-26 08:49:47 +00:00
parent 83da3d286c
commit 6de2a7b6c8

View 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];