File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,8 @@ public function fetchAssoc($result,$fields=false) {
162
162
public function fetchRow ($ result ,$ fields =false ) {
163
163
$ values = mysqli_fetch_row ($ result );
164
164
if ($ values && $ fields && !defined ('MYSQLI_OPT_INT_AND_FLOAT_NATIVE ' )) {
165
- $ this ->convertFloatAndInt ($ result ,$ values ,array_values ($ fields ));
165
+ $ fields = array_values ($ fields );
166
+ $ this ->convertFloatAndInt ($ result ,$ values ,$ fields );
166
167
}
167
168
return $ values ;
168
169
}
@@ -404,7 +405,8 @@ public function fetchAssoc($result,$fields=false) {
404
405
public function fetchRow ($ result ,$ fields =false ) {
405
406
$ values = pg_fetch_row ($ result );
406
407
if ($ values && $ fields ) {
407
- $ this ->convertFloatAndInt ($ result ,$ values ,array_values ($ fields ));
408
+ $ fields = array_values ($ fields );
409
+ $ this ->convertFloatAndInt ($ result ,$ values ,$ fields );
408
410
}
409
411
return $ values ;
410
412
}
You can’t perform that action at this time.
0 commit comments