From: skodak Date: Wed, 10 Oct 2007 09:21:13 +0000 (+0000) Subject: MDL-11432 rs->EOF wrapper function X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a7709f02b615fb0f1f3926abe236203586df9596;p=moodle.git MDL-11432 rs->EOF wrapper function --- diff --git a/lib/dmllib.php b/lib/dmllib.php index 0cbb24f115..29051daafe 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -813,6 +813,15 @@ function rs_fetch_next_record(&$rs) { return $rec; } +/** + * Returns true if no more records found + * @param ADORecordSet the recordset + * @return bool + */ +function rs_EOF($rs) { + return $rs->EOF; +} + /** * This function closes the recordset, freeing all the memory and associated resources. * Note that, once closed, the recordset must not be used anymore along the request.