From e87c7247004ce6d5a5760eb6dade4e68043982c1 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Thu, 8 Feb 2024 15:07:33 +1300 Subject: [PATCH] FIX Don't assume mysql handle is an object (#11129) --- src/ORM/Connect/MySQLQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ORM/Connect/MySQLQuery.php b/src/ORM/Connect/MySQLQuery.php index 3e2981471f6..ce9065c19cb 100644 --- a/src/ORM/Connect/MySQLQuery.php +++ b/src/ORM/Connect/MySQLQuery.php @@ -76,7 +76,7 @@ public function getIterator(): Traversable public function rewind(): void { // Check for the method first since $this->handle is a mixed type - if (method_exists($this->handle, 'data_seek')) { + if (is_object($this->handle) && method_exists($this->handle, 'data_seek')) { $this->handle->data_seek(0); } }