Fix complex string interpolation
This commit is contained in:
parent
45eda99ba3
commit
ab0f3d04b8
|
@ -59,7 +59,7 @@ class Application_Common_Database
|
||||||
$new_params[$k] = $new_params[$v];
|
$new_params[$k] = $new_params[$v];
|
||||||
} else {
|
} else {
|
||||||
foreach ( range(1,$matches_count) as $i ) {
|
foreach ( range(1,$matches_count) as $i ) {
|
||||||
preg_replace( "/$k(\D)/", "$k$i${1}", $sql, 1);
|
preg_replace( "/$k(\D)/", "{$k}{$i}${1}", $sql, 1);
|
||||||
$new_params[ $k.$i ] = $v;
|
$new_params[ $k.$i ] = $v;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue