Merge pull request !4 from 耐小心/master

This commit is contained in:
耐小心 2017-01-12 23:37:08 +08:00 committed by 康盛Discuz!
commit 21f2645035
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);
}
?>
?>