diff --git a/upload/source/function/function_forumlist.php b/upload/source/function/function_forumlist.php index 8a9939a..7da26a7 100644 --- a/upload/source/function/function_forumlist.php +++ b/upload/source/function/function_forumlist.php @@ -16,8 +16,7 @@ function checkautoclose($thread) { if(!$_G['forum']['ismoderator'] && $_G['forum']['autoclose']) { $closedby = $_G['forum']['autoclose'] > 0 ? 'dateline' : 'lastpost'; - $_G['forum']['autoclose'] = abs($_G['forum']['autoclose']); - if(TIMESTAMP - $thread[$closedby] > $_G['forum']['autoclose'] * 86400) { + if(TIMESTAMP - $thread[$closedby] > abs($_G['forum']['autoclose']) * 86400) { return 'post_thread_closed_by_'.$closedby; } }