From 5efab6449b8ae944e02d4a3b1ec1bd48a2df3c15 Mon Sep 17 00:00:00 2001 From: Discuz! Date: Mon, 13 Feb 2017 17:07:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E8=AF=BB=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/class/memory/memory_driver_file.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/source/class/memory/memory_driver_file.php b/upload/source/class/memory/memory_driver_file.php index 882e14c..35982fc 100644 --- a/upload/source/class/memory/memory_driver_file.php +++ b/upload/source/class/memory/memory_driver_file.php @@ -38,11 +38,11 @@ class memory_driver_file { } public function get($key) { - $data = false; + $data = array(); @include_once DISCUZ_ROOT.$this->path.$this->cachefile($key).'.php'; if($data !== false) { if($data['exp'] && $data['exp'] < TIMESTAMP) { - return false; + return array(); } return $data['data']; }