MDL-13762 some debug code and workaround for sloppy use of recordsets; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2008-03-04 09:24:04 +00:00
parent 4b1b37021a
commit 2516a42ad1

@ -816,6 +816,11 @@ function rs_fetch_next_record(&$rs) {
global $CFG;
if (empty($rs)) {
debugging('Incorrect rs used!');
return false;
}
$rec = false;
$recarr = $rs->FetchRow(); //Retrieve record as object without advance the pointer. It's quicker that FetchNextObj()