From 98ddfa240147acb8cce84734657a1ecf12fad450 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Sun, 19 Jan 2020 13:35:16 +0900 Subject: [PATCH] Update database.php --- system/database.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/system/database.php b/system/database.php index 1d89e38..9815b27 100644 --- a/system/database.php +++ b/system/database.php @@ -2,7 +2,7 @@ /** * @file database.php * @created_on 2018-04-13 - * @updated_on 2020-01-09 + * @updated_on 2020-01-19 * @author Go Namhyeon * @brief Database module */ @@ -320,12 +320,13 @@ if(!check_function_exists("get_bind_to_sql_insert")) { // check ignores if(count($setignore) > 0) { + $_bind = false; $_options = array( "getcount" => true, "setwheres" => $setignores ); - $_sql = get_bind_to_sql_select($tablename, false, $_options); - $_rows = exec_db_fetch_all($_sql, $bind); + $_sql = get_bind_to_sql_select($tablename, $_bind, $_options); + $_rows = exec_db_fetch_all($_sql, $_bind); foreach($_rows as $_row) { $num_ignores += intval($_row['value']); }