Update database.php

This commit is contained in:
Namhyeon Go 2018-07-03 10:41:29 +09:00 committed by GitHub
parent f0f1888d01
commit 6a9584871e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -315,7 +315,11 @@ if(!function_exists("get_bind_to_sql_select")) {
if(!array_key_empty("setwheres", $options)) {
if(is_array($options['setwheres'])) {
foreach($options['setwheres'] as $opts) {
$s3 .= check_is_string_not_array($opts) ? sprintf(" and (%s)", $opts) : "";
if(check_is_string_not_array($opts)) {
$s3 .= sprintf(" and (%s)", $opts);
} elseif(count($opts) == 2) {
$s3 .= sprintf(" %s (%s)", $opts[0], $opts[1]);
}
}
}
}