File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ public function custom_result_object($class_name)
203
203
return $ this ->custom_result_object [$ class_name ];
204
204
}
205
205
206
- $ this ->data_seek (0 );
206
+ is_null ( $ this -> row_data ) OR $ this ->data_seek (0 );
207
207
$ this ->custom_result_object [$ class_name ] = array ();
208
208
209
209
while ($ row = $ this ->_fetch_object ($ class_name ))
@@ -246,7 +246,7 @@ public function result_object()
246
246
return $ this ->result_object ;
247
247
}
248
248
249
- $ this ->data_seek (0 );
249
+ is_null ( $ this -> row_data ) OR $ this ->data_seek (0 );
250
250
while ($ row = $ this ->_fetch_object ())
251
251
{
252
252
$ this ->result_object [] = $ row ;
@@ -287,7 +287,7 @@ public function result_array()
287
287
return $ this ->result_array ;
288
288
}
289
289
290
- $ this ->data_seek (0 );
290
+ is_null ( $ this -> row_data ) OR $ this ->data_seek (0 );
291
291
while ($ row = $ this ->_fetch_assoc ())
292
292
{
293
293
$ this ->result_array [] = $ row ;
You can’t perform that action at this time.
0 commit comments