MDL-13944 rs_close() does not throw fatal error if rs does not exist aynmore

This commit is contained in:
skodak
2008-03-16 22:06:55 +00:00
parent 267ecadfe9
commit 57525b9420
+5
View File
@@ -847,8 +847,13 @@ function rs_EOF($rs) {
* Note that, once closed, the recordset must not be used anymore along the request.
* Saves memory (optional but recommended).
* @param ADORecordSet the recordset to be closed
* @return void
*/
function rs_close(&$rs) {
if (!$rs) {
// recordset not open, hmmm
return;
}
$rs->Close();
}