Fix PHP7.1下更新缓存报错

This commit is contained in:
NaiXiaoXin 2017-01-10 18:18:08 +08:00
parent 482a6c8e0c
commit 8df41cb87f
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
?>
?>