Skip to content

Commit cb56555

Browse files
committed
Skip if result object has no close method
1 parent c0bb804 commit cb56555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Database/BasePreparedQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ abstract public function _getResult();
144144
*/
145145
public function close()
146146
{
147-
if (! is_object($this->statement)) {
147+
if (! is_object($this->statement) || ! method_exists($this->statement, 'close')) {
148148
return;
149149
}
150150

0 commit comments

Comments
 (0)