From 2cea5d54fa5e4ee0dc58d3aa310fa8ba0b050240 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 12 Jun 2019 21:16:16 +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 1343a10..a3a8c3d 100644 --- a/system/database.php +++ b/system/database.php @@ -362,9 +362,9 @@ if(!check_function_exists("get_bind_to_sql_select")) { // s1a: s1 additonal (set new fields) $s1a = array(); if(array_key_is_array("setfields", $options)) { - $addfields = $options['setfields']; + $setfields = $options['setfields']; - foreach($addfields as $k=>$v) { + foreach($setfields as $k=>$v) { // concat and delimiter if(!array_keys_empty(array("concat", "delimiter"), $v)) { // add to s1a