Update database.php

This commit is contained in:
Namhyeon Go 2019-04-15 15:08:35 +09:00 committed by GitHub
parent 076035da0f
commit 58e53462e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -425,6 +425,9 @@ if(!check_function_exists("get_bind_to_sql_select")) {
foreach($options['setorders'] as $opts) {
if(check_is_string_not_array($opts)) {
$s4a[] = $opts;
} elseif(check_array_length($opts, 2) == 0)) {
// example: array("desc", "datetime")
$s4a[] = sprintf("%s %s", $opts[1], $opts[0]);
}
}
$s4 .= implode(", ", $s4a);