mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 18:04:43 +02:00
MDL-13762 some debug code and workaround for sloppy use of recordsets; merged from MOODLE_19_STABLE
This commit is contained in:
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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user