mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-13944 rs_close() does not throw fatal error if rs does not exist aynmore; merged from MOODLE_19_STABLE
This commit is contained in:
parent
ddb9c47252
commit
600fe3b333
@ -853,8 +853,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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user