mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
fixed another missing global $CFG
This commit is contained in:
parent
83da3d286c
commit
6de2a7b6c8
@ -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.
|
* @return mixed an associative array, or false if an error occured or the RecordSet was empty.
|
||||||
*/
|
*/
|
||||||
function recordset_to_menu($rs) {
|
function recordset_to_menu($rs) {
|
||||||
|
global $CFG;
|
||||||
|
|
||||||
if ($rs && $rs->RecordCount() > 0) {
|
if ($rs && $rs->RecordCount() > 0) {
|
||||||
$keys = array_keys($rs->fields);
|
$keys = array_keys($rs->fields);
|
||||||
$key0=$keys[0];
|
$key0=$keys[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user