summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-12-29 16:03:57 +0000
committerDries Buytaert <dries@buytaert.net>2008-12-29 16:03:57 +0000
commita04728577f34b98936c53799ccf1f2aaf7f3ff03 (patch)
treed401a2a0971bcbd5404473983b95923bf38e046d /modules/comment
parent5bbad8a4dc42ed751fc8f394cd2829718329c2be (diff)
downloadbrdo-a04728577f34b98936c53799ccf1f2aaf7f3ff03.tar.gz
brdo-a04728577f34b98936c53799ccf1f2aaf7f3ff03.tar.bz2
- Patch #352054 by catch: convert calls to db_placeholders() in static queries.
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 4f47d9657..aa27ea651 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -605,7 +605,7 @@ function comment_nodeapi_load($nodes, $types) {
// For nodes with comments enabled, fetch information from the database.
if (!empty($comments_enabled)) {
- $result = db_query('SELECT nid, last_comment_timestamp, last_comment_name, comment_count FROM {node_comment_statistics} WHERE nid IN(' . db_placeholders($comments_enabled) . ')', $comments_enabled);
+ $result = db_query('SELECT nid, last_comment_timestamp, last_comment_name, comment_count FROM {node_comment_statistics} WHERE nid IN(:comments_enabled)', array(':comments_enabled' => $comments_enabled));
foreach ($result as $record) {
$nodes[$record->nid]->last_comment_timestamp = $record->last_comment_timestamp;
$nodes[$record->nid]->last_comment_name = $record->last_comment_name;