Skip to content

Commit

Permalink
MDL-13762 some debug code and workaround for sloppy use of recordsets…
Browse files Browse the repository at this point in the history
…; merged from MOODLE_19_STABLE
  • Loading branch information
skodak committed Mar 4, 2008
1 parent 4b1b370 commit 2516a42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/dmllib.php
Expand Up @@ -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()

Expand Down

0 comments on commit 2516a42

Please sign in to comment.