diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-12-29 16:03:57 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-12-29 16:03:57 +0000 |
commit | a04728577f34b98936c53799ccf1f2aaf7f3ff03 (patch) | |
tree | d401a2a0971bcbd5404473983b95923bf38e046d /modules/comment | |
parent | 5bbad8a4dc42ed751fc8f394cd2829718329c2be (diff) | |
download | brdo-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.module | 2 |
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; |