From 871644854c809bccfa68de013b63bca6f901c921 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Fri, 3 May 2019 20:28:51 +0900 Subject: [PATCH] Update database.php --- system/database.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/database.php b/system/database.php index 6845214..d6c60bb 100644 --- a/system/database.php +++ b/system/database.php @@ -402,9 +402,9 @@ if(!check_function_exists("get_bind_to_sql_select")) { // use function if(!array_key_empty("call_func", $v)) { - if(check_array_length($v['call_func'], 2)) { + if(check_array_length($v['call_func'], 1) > 0) { // add to s1a - $s1a[$k] = sprintf("%s(%s)", $v['call_func'][0], implode(", ", $v['call_func'][1])); + $s1a[$k] = sprintf("%s(%s)", $v['call_func'][0], implode(", ", array_slice($v['call_func'], 1))); } } }