Update database.php

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

View File

@ -458,7 +458,7 @@ if(!check_function_exists("get_bind_to_sql_select")) {
$s4a[] = $opts;
} elseif(check_array_length($opts, 2) == 0) {
// example: array("desc", "datetime")
$s4a[] = sprintf("%s %s", $opts[1], $opts[0]);
$s4a[] = sprintf("%s %s", get_value_in_array($opts[1], $s1a, $opts[1]), $opts[0]);
}
}
$s4 .= implode(", ", $s4a);