Update database.php

This commit is contained in:
Namhyeon Go 2019-06-18 17:33:51 +09:00 committed by GitHub
parent 6d5e8beada
commit ab9e0ad798
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -366,9 +366,9 @@ if(!check_function_exists("get_bind_to_sql_select")) {
foreach($setfields as $k=>$v) {
// concat and delimiter
if(!array_keys_empty(array("concat", "delimiter"), $v)) {
// add to s1a
$s1a[$k] = sprintf("concat(%s)", implode(sprintf(", '%s', ", $v['delimiter']), $v['concat']));
if(!array_keys_empty("concat", $v)) {
$delimiter = get_value_in_array("delimiter", $v, " ");
$s1a[$k] = sprintf("concat(%s)", implode(sprintf(", '%s', ", $delimiter), $v['concat']));
}
// use mysql function