? 314349-comment-stop-gap.patch ? 314349-comment-stop-gap_0.patch ? 323477-simpletest-speedup.patch ? admincontentnode.patch ? admincontentnode.patch.1 ? comment_mode.patch ? d7test.sql ? fix_update_2.patch ? multiple_load.patch ? multiple_load2.patch ? node_load_21.patch ? node_load_multiple.patch ? node_load_multiple_1.patch ? term_hooks.patch ? term_hooks_6.patch ? term_hooks_6.patch.1 ? term_objects.patch ? vocab-hooks-329140-4.patch ? modules/dblog/.dblog.test.swp ? modules/node/node_load_multiple.patch ? modules/system/.system.install.swp ? sites/all/modules ? sites/default/fiels ? sites/default/files ? sites/default/settings.php Index: modules/node/node.module =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.module,v retrieving revision 1.993 diff -u -p -r1.993 node.module --- modules/node/node.module 3 Nov 2008 05:55:56 -0000 1.993 +++ modules/node/node.module 5 Nov 2008 23:53:02 -0000 @@ -1446,11 +1446,8 @@ function theme_node_search_admin($form) * Retrieve the comment mode for the given node ID (none, read, or read/write). */ function node_comment_mode($nid) { - static $comment_mode; - if (!isset($comment_mode[$nid])) { - $comment_mode[$nid] = db_result(db_query('SELECT comment FROM {node} WHERE nid = %d', $nid)); - } - return $comment_mode[$nid]; + $node = node_load($nid); + return $node->comment; } /**