From 3d5fb99f00126be86737753f97064e9047121fc9 Mon Sep 17 00:00:00 2001 From: vyshane Date: Fri, 15 Sep 2006 06:03:32 +0000 Subject: [PATCH] Fixed bug in get_records_sql(). This call: $rs = get_recordset_sql($sql, $limitfrom='', $limitnum=''); should really be: $rs = get_recordset_sql($sql, $limitfrom, $limitnum); --- lib/dmllib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/dmllib.php b/lib/dmllib.php index 1edb34e236..e1589468a5 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -590,7 +590,6 @@ function get_recordset_list($table, $field='', $values='', $sort='', $fields='*' * @return mixed an ADODB RecordSet object, or false if an error occured. */ function get_recordset_sql($sql, $limitfrom=null, $limitnum=null) { - global $CFG, $db; if (empty($db)) { @@ -736,7 +735,7 @@ function get_records_list($table, $field='', $values='', $sort='', $fields='*', * @return mixed an array of objects, or false if no records were found or an error occured. */ function get_records_sql($sql, $limitfrom='', $limitnum='') { - $rs = get_recordset_sql($sql, $limitfrom='', $limitnum=''); + $rs = get_recordset_sql($sql, $limitfrom, $limitnum); return recordset_to_array($rs); } -- 2.39.5