diff --git a/upload/source/class/magic/magic_repent.php b/upload/source/class/magic/magic_repent.php index 40e3da2bcec9558f0ee552815070d0271c40bf65..b25d687f30862f1d8ded7ba6b395eeef794687f3 100644 --- a/upload/source/class/magic/magic_repent.php +++ b/upload/source/class/magic/magic_repent.php @@ -63,7 +63,7 @@ class magic_repent { if($have_replycredit = C::t('forum_replycredit')->fetch($post['tid'])) { $thread = C::t('forum_thread')->fetch($post['tid']); if($thread['replycredit']) { - updatemembercount($post['authorid'], array($_G['setting']['creditstransextra'][10] => $replycredit)); + updatemembercount($post['authorid'], array($_G['setting']['creditstransextra'][10] => -$thread['replycredit'])); } C::t('forum_replycredit')->delete($post['tid']); C::t('common_credit_log')->delete_by_operation_relatedid(array('RCT', 'RCA', 'RCB'), $post['tid']); @@ -117,7 +117,7 @@ class magic_repent { if($post['authorid'] != $_G['uid']) { showmessage(lang('magic/repent', 'repent_info_user_noperm')); } - if(getstatus($post['thread_status'], 3)) { + if(getstatus($post['status'], 3)) { showmessage(lang('magic/repent', 'repent_do_not_rushreply')); } }