From 3d9266dc162e3b0ded52afeab526a2d1a656a2f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 4 Jun 2021 18:22:57 +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 --- System/Cache/Redis.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/System/Cache/Redis.php b/System/Cache/Redis.php index a8d44c88..912bf93f 100644 --- a/System/Cache/Redis.php +++ b/System/Cache/Redis.php @@ -72,7 +72,9 @@ class Redis extends Component } else { $client = $this->proxy(); $data = $client->{$name}(...$arguments); - var_dump($client->getLastError()); + if ($client->getLastError() !== null) { + var_dump($client->getLastError()); + } } return $data; }