Update database.php

This commit is contained in:
Namhyeon Go 2020-01-16 15:51:20 +09:00 committed by GitHub
parent 04425ecd04
commit c30158ab1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -604,6 +604,13 @@ if(!check_function_exists("get_bind_to_sql_select")) {
// s3: fields of where clause
$s3 = get_bind_to_sql_where($bind, $options);
// s3i: set groups
$s3i = "";
if(!array_key_empty("setgroups", $options)) {
$s3i = sprintf(" group by `%s`", implode("`, `", get_array($options['setgroups'])));
$s3 .= $s3i;
}
// s4: set orders
$s4 = "";
$s4a = array();