From a7709f02b615fb0f1f3926abe236203586df9596 Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 10 Oct 2007 09:21:13 +0000 Subject: [PATCH] MDL-11432 rs->EOF wrapper function --- lib/dmllib.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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. -- 2.39.5