@@ -154,7 +154,8 @@ public function getCustomResultObject(string $className)
154154 {
155155 return $ this ->customResultObject [$ className ];
156156 }
157- elseif (! $ this ->resultID || $ this ->numRows === 0 )
157+
158+ if (is_bool ($ this ->resultID ) || ! $ this ->resultID || $ this ->numRows === 0 )
158159 {
159160 return [];
160161 }
@@ -215,7 +216,7 @@ public function getResultArray(): array
215216 // In the event that query caching is on, the result_id variable
216217 // will not be a valid resource so we'll simply return an empty
217218 // array.
218- if (! $ this ->resultID || $ this ->numRows === 0 )
219+ if (is_bool ( $ this -> resultID ) || ! $ this ->resultID || $ this ->numRows === 0 )
219220 {
220221 return [];
221222 }
@@ -258,7 +259,7 @@ public function getResultObject(): array
258259 // In the event that query caching is on, the result_id variable
259260 // will not be a valid resource so we'll simply return an empty
260261 // array.
261- if (! $ this ->resultID || $ this ->numRows === 0 )
262+ if (is_bool ( $ this -> resultID ) || ! $ this ->resultID || $ this ->numRows === 0 )
262263 {
263264 return [];
264265 }
@@ -300,7 +301,7 @@ public function getRow($n = 0, $type = 'object')
300301 if (! is_numeric ($ n ))
301302 {
302303 // We cache the row data for subsequent uses
303- is_array ($ this ->rowData ) || $ this ->row_data = $ this ->getRowArray (0 );
304+ is_array ($ this ->rowData ) || $ this ->rowData = $ this ->getRowArray (0 );
304305
305306 // array_key_exists() instead of isset() to allow for NULL values
306307 if (empty ($ this ->rowData ) || ! array_key_exists ($ n , $ this ->rowData ))
@@ -421,7 +422,7 @@ public function setRow($key, $value = null)
421422 // We cache the row data for subsequent uses
422423 if (! is_array ($ this ->rowData ))
423424 {
424- $ this ->row_data = $ this ->getRowArray (0 );
425+ $ this ->rowData = $ this ->getRowArray (0 );
425426 }
426427
427428 if (is_array ($ key ))
0 commit comments