summaryrefslogtreecommitdiff
path: root/modules/comment/comment.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-04-25 18:34:05 +0000
committerDries Buytaert <dries@buytaert.net>2008-04-25 18:34:05 +0000
commit159bb6dd08519667595da4683fd96f21823f4335 (patch)
tree2ceaf22d10dbf10fe7094e916c933d0152c81745 /modules/comment/comment.module
parent67939add5f877cf4d5b0789f4d4d27a334d98ec8 (diff)
downloadbrdo-159bb6dd08519667595da4683fd96f21823f4335.tar.gz
brdo-159bb6dd08519667595da4683fd96f21823f4335.tar.bz2
- Rollback.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r--modules/comment/comment.module4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index c618c2ef5..05fe9a11e 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -582,9 +582,7 @@ function comment_form_alter(&$form, $form_state, $form_id) {
function comment_nodeapi(&$node, $op, $arg = 0) {
switch ($op) {
case 'load':
- if (variable_get('comment_' . $node->type, COMMENT_NODE_READ_WRITE) != COMMENT_NODE_DISABLED) {
- 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));
break;
case 'prepare':