From 199312d32601e554a60b84ca0d4007b6ad2a282c Mon Sep 17 00:00:00 2001 From: whwyy Date: Fri, 26 Apr 2024 15:39:13 +0800 Subject: [PATCH] eee --- Command.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Command.php b/Command.php index 9b05afd..2b5161e 100644 --- a/Command.php +++ b/Command.php @@ -81,7 +81,11 @@ class Command extends Component */ public function exists(): bool { - return count($this->search('fetch')) > 0; + $data = $this->search('fetch'); + if (!$data) { + return false; + } + return true; } /**