Commit 19be025e by Scott Committed by GitHub

Merge pull request #553 from pupi1985/patch-93

Fix points recalculation when turning answers to comments
parents b9ccbef6 f2790d94
...@@ -1013,7 +1013,7 @@ function qa_answer_to_comment($oldanswer, $parentid, $content, $format, $text, $ ...@@ -1013,7 +1013,7 @@ function qa_answer_to_comment($oldanswer, $parentid, $content, $format, $text, $
qa_update_q_counts_for_a($question['postid']); qa_update_q_counts_for_a($question['postid']);
qa_db_ccount_update(); qa_db_ccount_update();
qa_db_points_update_ifuser($oldanswer['userid'], array('aposts', 'aselecteds', 'cposts', 'avoteds')); qa_db_points_update_ifuser($oldanswer['userid'], array('aposts', 'aselecteds', 'cposts', 'avoteds', 'cvoteds'));
$useridvotes = qa_db_uservote_post_get($oldanswer['postid']); $useridvotes = qa_db_uservote_post_get($oldanswer['postid']);
foreach ($useridvotes as $voteruserid => $vote) { foreach ($useridvotes as $voteruserid => $vote) {
......
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