From 0757a97714227df140a3ad6b3c7820b298264da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 26 Mar 2021 19:25:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Database/Condition/Condition.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Database/Condition/Condition.php b/Database/Condition/Condition.php index 54ca3c05..913ee3cc 100644 --- a/Database/Condition/Condition.php +++ b/Database/Condition/Condition.php @@ -70,7 +70,8 @@ abstract class Condition extends BaseObject return $params; } - $check = ltrim(strtolower(substr($params, 0, 6)), '('); + $check = ltrim($params,'('); + $check = strtolower(substr($check, 0, 6)); if (in_array($check, ['update', 'select', 'insert', 'delete'])) { return $params; } else {