Writings Photos Code Contact Resume
Fixed the wrong number of comments.

You are here

Submitted by msameer on Tue, 14/12/2004 - 4:01am

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

Subscribe to /  digg  bookmark