From 58e53462e0bd10f91377e14b22fa71ea96db02d1 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 15 Apr 2019 15:08:35 +0900 Subject: [PATCH] Update database.php --- system/database.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/database.php b/system/database.php index 111887f..ceb99b7 100644 --- a/system/database.php +++ b/system/database.php @@ -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);