From 28ac7c2fadcb05cccb21cf8c0657af313c422bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B0=B4=E5=B9=B3=E5=87=A1?= Date: Wed, 9 Aug 2017 10:13:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=BC=93=E5=AD=98=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E7=9A=84=E6=97=B6=E5=80=99=E8=BF=87=E6=BB=A4=E6=97=A0?= =?UTF-8?q?=E6=95=88=E7=9A=84=E7=BC=93=E5=AD=98=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/cache/Driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/cache/Driver.php b/library/think/cache/Driver.php index ab48bdd6..775f219d 100644 --- a/library/think/cache/Driver.php +++ b/library/think/cache/Driver.php @@ -191,7 +191,7 @@ abstract class Driver $key = 'tag_' . md5($tag); $value = $this->get($key); if ($value) { - return explode(',', $value); + return array_filter(explode(',', $value)); } else { return []; }