$rs = get_recordset_sql($sql, $limitfrom='', $limitnum='');
should really be:
$rs = get_recordset_sql($sql, $limitfrom, $limitnum);
* @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)) {
* @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);
}