diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-11-11 21:44:01 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-11-11 21:44:01 +0000 |
commit | 9d631d22f920796287041408dd8cf090370bac72 (patch) | |
tree | db97d1bce9349c32c4985fdc8ca8acf7c9354569 /modules/comment/comment.admin.inc | |
parent | a56f520fadc4081ac90c7b467acf8e9ae7d3239b (diff) | |
download | brdo-9d631d22f920796287041408dd8cf090370bac72.tar.gz brdo-9d631d22f920796287041408dd8cf090370bac72.tar.bz2 |
- Patch #314532 by jsaints, Crell, Arancaytar, CorniI, Rob Loach, et al: convert comment module to new DB layer. Doesn't break any additional tests so if we discover a regression, please submit a test with it.
Diffstat (limited to 'modules/comment/comment.admin.inc')
-rw-r--r-- | modules/comment/comment.admin.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/comment/comment.admin.inc b/modules/comment/comment.admin.inc index af7f2090b..1db6582e5 100644 --- a/modules/comment/comment.admin.inc +++ b/modules/comment/comment.admin.inc @@ -128,7 +128,9 @@ function comment_admin_overview_submit($form, &$form_state) { foreach ($form_state['values']['comments'] as $cid => $value) { if ($value) { // Perform the update action, then refresh node statistics. - db_query($query, $cid); + $query + ->condition('cid', $cid ) + ->execute(); $comment = comment_load($cid); _comment_update_node_statistics($comment->nid); // Allow modules to respond to the updating of a comment. |