Fixed the wrong number of comments.

Body

After fixing the spam.module, I used this code to fix the wrong statistics.

<?php
$result
= db_query("select * from node_comment_statistics");
while (
$node = db_fetch_object($result))
{
echo
"Manipulating node: ";
echo
"$node->nid";
_comment_update_node_statistics($node->nid);
echo
"<br />";
}
?>

I've posted it on the drupal forum.

Add new comment

The content of this field is kept private and will not be shown publicly.