Fix complex string interpolation

This commit is contained in:
jo 2021-09-15 15:11:10 +02:00
parent 45eda99ba3
commit ab0f3d04b8
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class Application_Common_Database
$new_params[$k] = $new_params[$v];
} else {
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;
}
}