From 8df41cb87f4df4a062b0813a9b26ee50beee2f66 Mon Sep 17 00:00:00 2001 From: NaiXiaoXin Date: Tue, 10 Jan 2017 18:18:08 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20PHP7.1=E4=B8=8B=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/function/cache/cache_censor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/source/function/cache/cache_censor.php b/upload/source/function/cache/cache_censor.php index 9986c58..775e540 100644 --- a/upload/source/function/cache/cache_censor.php +++ b/upload/source/function/cache/cache_censor.php @@ -15,7 +15,7 @@ function build_cache_censor() { $banned = $mod = array(); $bannednum = $modnum = 0; - $data = array('filter' => array(), 'banned' => '', 'mod' => ''); + $data = array('filter' => array(), 'banned' => array(), 'mod' => array()); foreach(C::t('common_word')->fetch_all() as $censor) { if(preg_match('/^\/(.+?)\/$/', $censor['find'], $a)) { @@ -77,4 +77,4 @@ function build_cache_censor() { savecache('censor', $data); } -?> \ No newline at end of file +?>