include/common.inc.php
Find:
- $forum['postcredits'] = $forum['postcredits'] ? unserialize($forum['postcredits']) : array();
- $forum['replycredits'] = $forum['replycredits'] ? unserialize($forum['replycredits']) : array();
- $forum['threadtypes'] = $forum['threadtypes'] ? unserialize($forum['threadtypes']) : array();
- $forum['digestcredits'] = $forum['digestcredits'] ? unserialize($forum['digestcredits']) : array();
- $forum['postattachcredits'] = $forum['postattachcredits'] ? unserialize($forum['postattachcredits']) : array();
- $forum['getattachcredits'] = $forum['getattachcredits'] ? unserialize($forum['getattachcredits']) : array();
- if($supe_status) {
- $forum['supe_pushsetting'] = unserialize($forum['supe_pushsetting']);
- }
复制代码
Replace:
- foreach(array('postcredits', 'replycredits', 'threadtypes', 'digestcredits', 'postattachcredits', 'postattachcredits', 'supe_pushsetting') as $key) {
- $forum[$key] = !empty($forum[$key]) ? unserialize($forum[$key]) : array();
- }
复制代码
应该是
- foreach(array('postcredits', 'replycredits', 'threadtypes', 'digestcredits', 'postattachcredits', 'getattachcredits', 'supe_pushsetting') as $key) {
- $forum[$key] = !empty($forum[$key]) ? unserialize($forum[$key]) : array();
- }
复制代码
原来是官方的不对 |