Update database.php

This commit is contained in:
Namhyeon Go 2019-04-03 11:48:56 +09:00 committed by GitHub
parent d19a34395f
commit d7c9604b59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,11 +81,12 @@ if(!check_function_exists("get_dbc_object")) {
if(!check_function_exists("get_db_binded_param")) {
function get_db_binded_param($exp, $bind) {
if($exp == (":" . $k)) {
foreach($bind as $k=>$v) {
$exp = sprintf("'%s'", make_safe_argument($v));
foreach($bind as $k=>$v) {
if($exp == sprintf(":%s", $k)) {
$exp = make_safe_argument($v);
}
}
return $exp;
}
}