mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Don't assume mysql handle is an object (#11129)
This commit is contained in:
parent
4d96674752
commit
e87c724700
@ -76,7 +76,7 @@ class MySQLQuery extends Query
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user