fetch_by_operation_relatedid('RAC', $thread['tid']); $answererid = $log['uid']; if($thread['price'] < 0) { $thread['price'] = abs($thread['price']); updatemembercount($answererid, array($_G['setting']['creditstransextra'][2] => -$thread['price'])); } updatemembercount($thread['authorid'], array($_G['setting']['creditstransextra'][2] => $thread['price'])); C::t('forum_thread')->update($thread['tid'], array('special'=>0, 'price'=>0), true); C::t('common_credit_log')->delete_by_operation_relatedid(array('RTC', 'RAC'), $thread['tid']); $resultarray = array( 'redirect' => "forum.php?mod=viewthread&tid=$thread[tid]", 'reasonpm' => ($sendreasonpm ? array('data' => array($thread), 'var' => 'thread', 'item' => 'reason_remove_reward', 'notictype' => 'post') : array()), 'reasonvar' => array('tid' => $thread['tid'], 'subject' => $thread['subject'], 'modaction' => $modaction, 'reason' => $reason, 'threadid' => $thread[tid]), 'modtids' => $thread['tid'] ); } ?>