diff --git a/upload/source/admincp/admincp_remoderate.php b/upload/source/admincp/admincp_remoderate.php
index afe7fe7984d2c12cf0635587e4ad63b88e79589a..5aa2b0fc3e0612149d6f31031add7adde85521d6 100644
--- a/upload/source/admincp/admincp_remoderate.php
+++ b/upload/source/admincp/admincp_remoderate.php
@@ -29,7 +29,7 @@ if(submitcheck('threadsubmit', 1)) {
foreach(C::t('forum_thread')->fetch_all_by_displayorder(0, '>=', $current, $pertask) as $thread) {
$processed = 1;
foreach(C::t('forum_post')->fetch_all_visiblepost_by_tid($thread['posttableid'], $thread['tid']) as $post) {
- if($censor->check($post['subject']) || $censor->check($post['message'])) {
+ if((!empty($post['subject']) && $censor->check($post['subject'])) || (!empty($post['message']) && $censor->check($post['message']))) {
C::t('forum_post')->update($thread['posttableid'], $post['pid'], array('status' => 4), false, false, null, -2, null, 0);
if($post['first'] == 1) {
C::t('forum_thread')->update($thread['tid'], array('displayorder' => -2));
@@ -59,7 +59,7 @@ if(submitcheck('threadsubmit', 1)) {
foreach(C::t('home_blog')->range($current, $pertask, 'ASC', 'dateline', null, 0) as $blog) {
$processed = 1;
$post = C::t('home_blogfield')->fetch($blog['blogid']);
- if($censor->check($blog['subject']) || $censor->check($post['message'])) {
+ if((!empty($blog['subject']) && $censor->check($blog['subject'])) || (!empty($post['message']) && $censor->check($post['message']))) {
C::t('home_blog')->update($blog['blogid'], array('status' => 1));
updatemoderate('blogid', $blog['blogid']);
}
@@ -82,7 +82,7 @@ if(submitcheck('threadsubmit', 1)) {
foreach(C::t('home_pic')->fetch_all_by_sql('`status` = 0', 'picid', $current, $pertask, 0, 0) as $pic) {
$processed = 1;
- if($censor->check($pic['title'])) {
+ if(!empty($pic['title']) && $censor->check($pic['title'])) {
C::t('home_pic')->update($pic['picid'], array('status' => 1));
updatemoderate('picid', $pic['picid']);
}
@@ -105,7 +105,7 @@ if(submitcheck('threadsubmit', 1)) {
foreach(C::t('home_doing')->fetch_all_by_status(0, $current, $pertask) as $doing) {
$processed = 1;
- if($censor->check($doing['message'])) {
+ if(!empty($doing['message']) && $censor->check($doing['message'])) {
C::t('home_doing')->update($doing['doid'], array('status' => 1));
updatemoderate('doid', $doing['doid']);
}
@@ -128,7 +128,7 @@ if(submitcheck('threadsubmit', 1)) {
foreach(C::t('home_share')->fetch_all_by_status(0, $current, $pertask) as $share) {
$processed = 1;
- if($censor->check($share['body_general'])) {
+ if(!empty($share['body_general']) && $censor->check($share['body_general'])) {
C::t('home_share')->update($share['sid'], array('status' => 1));
updatemoderate('sid', $share['sid']);
}
@@ -151,7 +151,7 @@ if(submitcheck('threadsubmit', 1)) {
foreach(C::t('home_comment')->fetch_all_by_status(0, $current, $pertask) as $comment) {
$processed = 1;
- if($censor->check($comment['message'])) {
+ if(!empty($comment['message']) && $censor->check($comment['message'])) {
C::t('home_comment')->update($comment['cid'], array('status' => 1));
updatemoderate($comment['idtype'].'_cid', $comment['cid']);
}
@@ -174,9 +174,9 @@ if(submitcheck('threadsubmit', 1)) {
foreach(C::t('portal_article_title')->fetch_all_by_sql('`status` = 0', '', $current, $pertask) as $article) {
$processed = 1;
- if(!$censor->check($post['subject'])) {
+ if(empty($post['subject']) || !$censor->check($post['subject'])) {
foreach(C::t('portal_article_content')->fetch_all($article['aid']) as $post) {
- if($censor->check($post['content'])) {
+ if(!empty($post['content']) && $censor->check($post['content'])) {
C::t('portal_article_title')->update($article['aid'], array('status' => 1));
updatemoderate('aid', $article['aid']);
break;
@@ -205,7 +205,7 @@ if(submitcheck('threadsubmit', 1)) {
foreach(C::t('portal_comment')->fetch_all_by_idtype_status('aid', 0, $current, $pertask) as $comment) {
$processed = 1;
- if($censor->check($comment['message'])) {
+ if(!empty($comment['message']) && $censor->check($comment['message'])) {
C::t('portal_comment')->update($comment['cid'], array('status' => 1));
updatemoderate($comment['idtype'].'_cid', $comment['cid']);
}
@@ -228,7 +228,7 @@ if(submitcheck('threadsubmit', 1)) {
foreach(C::t('portal_comment')->fetch_all_by_idtype_status('topicid', 0, $current, $pertask) as $comment) {
$processed = 1;
- if($censor->check($comment['message'])) {
+ if(!empty($comment['message']) && $censor->check($comment['message'])) {
C::t('portal_comment')->update($comment['cid'], array('status' => 1));
updatemoderate($comment['idtype'].'_cid', $comment['cid']);
}
@@ -255,47 +255,47 @@ if(submitcheck('threadsubmit', 1)) {
// 主题/帖子标题及内容重新审核
showtablerow('', array('class="td31 bold"'), array(
"{$lang['remoderate_thread']}:",
- ''
+ ''
));
// 日志标题及内容重新审核
showtablerow('', array('class="td31 bold"'), array(
"{$lang['remoderate_blog']}:",
- ''
+ ''
));
// 图片标题重新审核
showtablerow('', array('class="td31 bold"'), array(
"{$lang['remoderate_pic']}:",
- ''
+ ''
));
// 记录内容重新审核
showtablerow('', array('class="td31 bold"'), array(
"{$lang['remoderate_doing']}:",
- ''
+ ''
));
// 分享内容重新审核
showtablerow('', array('class="td31 bold"'), array(
"{$lang['remoderate_share']}:",
- ''
+ ''
));
// 家园评论内容重新审核
showtablerow('', array('class="td31 bold"'), array(
"{$lang['remoderate_comment']}:",
- ''
+ ''
));
// 文章标题及内容重新审核
showtablerow('', array('class="td31 bold"'), array(
"{$lang['remoderate_article']}:",
- ''
+ ''
));
// 文章评论内容重新审核
showtablerow('', array('class="td31 bold"'), array(
"{$lang['remoderate_articlecomment']}:",
- ''
+ ''
));
// 专题评论内容重新审核
showtablerow('', array('class="td31 bold"'), array(
"{$lang['remoderate_topiccomment']}:",
- ''
+ ''
));
showtablefooter();