Update database.php
This commit is contained in:
parent
076035da0f
commit
58e53462e0
|
@ -425,6 +425,9 @@ if(!check_function_exists("get_bind_to_sql_select")) {
|
||||||
foreach($options['setorders'] as $opts) {
|
foreach($options['setorders'] as $opts) {
|
||||||
if(check_is_string_not_array($opts)) {
|
if(check_is_string_not_array($opts)) {
|
||||||
$s4a[] = $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);
|
$s4 .= implode(", ", $s4a);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user