Commit ea6890ba by Scott

Fix incorrect conditional in RecountPostsACount

parent 97af2dbe
...@@ -32,7 +32,7 @@ class Q2A_Recalc_RecountPostsACount extends Q2A_Recalc_AbstractStep ...@@ -32,7 +32,7 @@ class Q2A_Recalc_RecountPostsACount extends Q2A_Recalc_AbstractStep
{ {
$postids = qa_db_posts_get_for_recounting($this->state->next, 1000); $postids = qa_db_posts_get_for_recounting($this->state->next, 1000);
if (count($postids)) { if (!count($postids)) {
qa_db_unupaqcount_update(); qa_db_unupaqcount_update();
$this->state->transition('dorecountposts_complete'); $this->state->transition('dorecountposts_complete');
return false; return false;
......
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