From 4eeff3100ad821e5f3bf36a258fa37dd842f00a7 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 28 Jan 2020 11:13:34 +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 0aa2c8f..5c718e4 100644 --- a/system/database.php +++ b/system/database.php @@ -321,11 +321,11 @@ if(!check_function_exists("get_bind_to_sql_insert")) { $num_duplicates += intval($_row['value']); } } - + // preventing accidentally query $num_conditions = count($setkeys) + count($setwheres); if($num_conditions == 0 && $safemode_off !== true) { - write_common_log("Blocked this SQL because it is maybe accidentally query. If you want continue, set safemode_off option to true", "system/database"); + write_common_log("Blocked accidentally query. Set safemode_off to TRUE if you want disable", "system/database"); return false; }