!139 修复 超级版主审核删除帖子,帖子从审核表中移除,但帖子表中仍处于审核态且用户收不到通知的问题(感谢 Hmily 发现问题)
Merge pull request !139 from Coxxs/master
This commit is contained in:
parent
5dc8343a64
commit
a518a2927b
|
@ -411,7 +411,7 @@ if($op == 'replies') {
|
|||
|
||||
if(submitcheck('modsubmit')) {
|
||||
if(!empty($moderation['ignore'])) {
|
||||
C::t('forum_thread')->update_by_tid_displayorder($moderation['ignore'], -2, array('displayorder'=>-3), $modfids);
|
||||
C::t('forum_thread')->update_by_tid_displayorder($moderation['ignore'], -2, array('displayorder'=>-3), ($modfids ? explode(',', $modfids) : null));
|
||||
updatemoderate('tid', $moderation['ignore'], 1);
|
||||
}
|
||||
$threadsmod = 0;
|
||||
|
@ -421,7 +421,7 @@ if($op == 'replies') {
|
|||
if(!empty($moderation['delete'])) {
|
||||
$deletetids = array();
|
||||
$recyclebintids = '0';
|
||||
foreach(C::t('forum_thread')->fetch_all_by_tid_displayorder($moderation['delete'], $pstat, '=', $modfids) as $thread) {
|
||||
foreach(C::t('forum_thread')->fetch_all_by_tid_displayorder($moderation['delete'], $pstat, '=', ($modfids ? explode(',', $modfids) : null)) as $thread) {
|
||||
if($modforums['recyclebins'][$thread['fid']]) {
|
||||
$recyclebintids .= ','.$thread['tid'];
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue