| 1 |
<?php |
<?php |
| 2 |
// $Id: comment.module,v 1.635 2008/06/09 07:07:36 dries Exp $ |
// $Id: comment.module,v 1.636 2008/06/14 16:02:49 dries Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 592 |
if ($node->comment != COMMENT_NODE_DISABLED) { |
if ($node->comment != COMMENT_NODE_DISABLED) { |
| 593 |
return db_fetch_array(db_query("SELECT last_comment_timestamp, last_comment_name, comment_count FROM {node_comment_statistics} WHERE nid = %d", $node->nid)); |
return db_fetch_array(db_query("SELECT last_comment_timestamp, last_comment_name, comment_count FROM {node_comment_statistics} WHERE nid = %d", $node->nid)); |
| 594 |
} |
} |
| 595 |
return array('last_comment_timestamp' => $node->created, 'last_comment_name' => '', 'commenet_count' => 0); |
return array('last_comment_timestamp' => $node->created, 'last_comment_name' => '', 'comment_count' => 0); |
| 596 |
|
|
| 597 |
case 'prepare': |
case 'prepare': |
| 598 |
if (!isset($node->comment)) { |
if (!isset($node->comment)) { |