Skip to content

Commit c140b75

Browse files
author
Gabriel Tadra Mainginski
committed
Fix index of one new_binds var
1 parent f486d48 commit c140b75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Database/SybaseConnection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,10 +231,10 @@ private function compileBindings($query, $bindings)
231231
if(count($bindings)>$ind){
232232
array_push($new_format[$table], ['campo' => $campos, 'binding' => $ind]);
233233
if(in_array(strtolower($types[$table][$campos]['type']), $this->without_quotes)){
234-
if(!is_null($bindings[$i])){
235-
$new_binds[$i] = $bindings[$i]/1;
234+
if(!is_null($bindings[$ind])){
235+
$new_binds[$ind] = $bindings[$ind]/1;
236236
}else{
237-
$new_binds[$i] = null;
237+
$new_binds[$ind] = null;
238238
}
239239
}else{
240240
$new_binds[$ind] = (string)$bindings[$ind];

0 commit comments

Comments
 (0)