From aa2de74fa261e4b3d290cedca100eb3330f17fff Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Fri, 29 Jul 2005 08:18:20 +0000 Subject: - #27624, #27614, #27627: dead code --- modules/comment.module | 1 - 1 file changed, 1 deletion(-) (limited to 'modules/comment.module') diff --git a/modules/comment.module b/modules/comment.module index 504680fb4..fa3a98443 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -1676,7 +1676,6 @@ function _comment_update_node_statistics($nid) { // comments exist if ($count > 0) { - $node = node_load($nid); $last_reply = db_fetch_object(db_query_range('SELECT cid, name, timestamp, uid FROM {comments} WHERE nid = %d AND status = %d ORDER BY cid DESC', $nid, COMMENT_PUBLISHED, 0, 1)); db_query("UPDATE {node_comment_statistics} SET comment_count = %d, last_comment_timestamp = %d, last_comment_name = '%s', last_comment_uid = %d WHERE nid = %d", $count, $last_reply->timestamp, $last_reply->uid ? NULL : $last_reply->name, $last_reply->uid, $nid); } -- cgit v1.2.3