Commit c7d6da77 by pupi1985

Fix selection of answers trying to close questions

parent d757fa58
......@@ -191,7 +191,7 @@ function qa_question_set_selchildid($userid, $handle, $cookieid, $oldquestion, $
'answer' => $answers[$selchildid],
));
if (empty($oldquestion['closed'])) {
if (empty($oldquestion['closed']) && qa_opt('do_close_on_select')) {
qa_db_post_set_closed($oldquestion['postid'], null, $userid, $lastip);
qa_report_event('q_close', $userid, $handle, $cookieid, array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment