From 9271ea189ef898f1392cdff1713d2671c02e88c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 25 Feb 2021 18:02:00 +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/SqlBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/SqlBuilder.php b/Database/SqlBuilder.php index eacfec91..840e4720 100644 --- a/Database/SqlBuilder.php +++ b/Database/SqlBuilder.php @@ -51,7 +51,7 @@ class SqlBuilder extends Component public function update(array $attributes): bool|array { [$string, $array] = $this->builderParams($attributes); - if (empty($string) || empty($array)) { + if (empty($string)) { return $this->addError('None data update.'); }