From 506268477de49b76765b1b5a2d7913d3c06f0ea7 Mon Sep 17 00:00:00 2001 From: Discuz! Date: Mon, 13 Feb 2017 12:38:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/class/memory/memory_driver_memcache.php | 1 + upload/source/class/memory/memory_driver_redis.php | 1 + 2 files changed, 2 insertions(+) diff --git a/upload/source/class/memory/memory_driver_memcache.php b/upload/source/class/memory/memory_driver_memcache.php index 8ec59cb..21b9dfe 100644 --- a/upload/source/class/memory/memory_driver_memcache.php +++ b/upload/source/class/memory/memory_driver_memcache.php @@ -23,6 +23,7 @@ class memory_driver_memcache { public function init($config) { if (!$this->env()) { $this->enable = false; + return; } if (!empty($config['server'])) { $this->obj = new Memcache; diff --git a/upload/source/class/memory/memory_driver_redis.php b/upload/source/class/memory/memory_driver_redis.php index 6b94122..23b78a5 100644 --- a/upload/source/class/memory/memory_driver_redis.php +++ b/upload/source/class/memory/memory_driver_redis.php @@ -23,6 +23,7 @@ class memory_driver_redis { function init($config) { if(!$this->env()) { $this->enable = false; + return; } if (!empty($config['server'])) {