Skip to content

Commit c7d6da7

Browse files
committed
Fix selection of answers trying to close questions
1 parent d757fa5 commit c7d6da7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qa-include/app/post-update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function qa_question_set_selchildid($userid, $handle, $cookieid, $oldquestion, $
191191
'answer' => $answers[$selchildid],
192192
));
193193

194-
if (empty($oldquestion['closed'])) {
194+
if (empty($oldquestion['closed']) && qa_opt('do_close_on_select')) {
195195
qa_db_post_set_closed($oldquestion['postid'], null, $userid, $lastip);
196196

197197
qa_report_event('q_close', $userid, $handle, $cookieid, array(

0 commit comments

Comments
 (0)