!139 修复 超级版主审核删除帖子,帖子从审核表中移除,但帖子表中仍处于审核态且用户收不到通知的问题(感谢 Hmily 发现问题)

Merge pull request !139 from Coxxs/master
This commit is contained in:
Coxxs 2018-01-11 09:49:05 +08:00 committed by Discuz!
parent 5dc8343a64
commit a518a2927b
1 changed files with 2 additions and 2 deletions

View File

@ -411,7 +411,7 @@ if($op == 'replies') {
if(submitcheck('modsubmit')) { if(submitcheck('modsubmit')) {
if(!empty($moderation['ignore'])) { 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); updatemoderate('tid', $moderation['ignore'], 1);
} }
$threadsmod = 0; $threadsmod = 0;
@ -421,7 +421,7 @@ if($op == 'replies') {
if(!empty($moderation['delete'])) { if(!empty($moderation['delete'])) {
$deletetids = array(); $deletetids = array();
$recyclebintids = '0'; $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']]) { if($modforums['recyclebins'][$thread['fid']]) {
$recyclebintids .= ','.$thread['tid']; $recyclebintids .= ','.$thread['tid'];
} else { } else {