summaryrefslogtreecommitdiff
path: root/modules/comment/comment.admin.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-28 19:18:08 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-28 19:18:08 +0000
commita938e18a1bd36d887010863817470b690fdbf6f3 (patch)
treeadbc7edb165255a47739fdbe7e0184c241f6340c /modules/comment/comment.admin.inc
parentff8b0618f5892d165720453efcd318b0d85a6f8c (diff)
downloadbrdo-a938e18a1bd36d887010863817470b690fdbf6f3.tar.gz
brdo-a938e18a1bd36d887010863817470b690fdbf6f3.tar.bz2
- Patch #491556 by Berdir: completed converting core to DBTNG. Oh my. Kudos to Berdir for this humongous effort.
Diffstat (limited to 'modules/comment/comment.admin.inc')
-rw-r--r--modules/comment/comment.admin.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.admin.inc b/modules/comment/comment.admin.inc
index c39741cda..fba703d2e 100644
--- a/modules/comment/comment.admin.inc
+++ b/modules/comment/comment.admin.inc
@@ -174,7 +174,7 @@ function comment_multiple_delete_confirm(&$form_state) {
foreach (array_filter($edit['comments']) as $cid => $value) {
$comment = comment_load($cid);
if (is_object($comment) && is_numeric($comment->cid)) {
- $subject = db_result(db_query('SELECT subject FROM {comment} WHERE cid = %d', $cid));
+ $subject = db_query('SELECT subject FROM {comment} WHERE cid = :cid', array(':cid' => $cid))->fetchField();
$form['comments'][$cid] = array('#type' => 'hidden', '#value' => $cid, '#prefix' => '<li>', '#suffix' => check_plain($subject) . '</li>');
$comment_counter++;
}