From 0690e7d412a0a6bee8cdb59372f0f3b8e5aaf364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 20 May 2021 15:54:34 +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/ActiveQuery.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Database/ActiveQuery.php b/Database/ActiveQuery.php index bfe54587..60b12d3e 100644 --- a/Database/ActiveQuery.php +++ b/Database/ActiveQuery.php @@ -307,8 +307,7 @@ class ActiveQuery extends Component implements ISqlBuilder */ public function exists(): bool { - var_dump($this->execute($this->builder->one())->fetchColumn()); - return $this->execute($this->builder->one())->fetchColumn() !== false; + return !empty($this->execute($this->builder->one())->fetchColumn()); }