summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-05-10 21:30:31 +0000
committerDries Buytaert <dries@buytaert.net>2004-05-10 21:30:31 +0000
commit4fad80e53822ca8d9a62098cfc7f23db1c4ea3e0 (patch)
treeef46bb227729913a43257211bffaf1c0df4ba5a8 /modules/comment
parent1ad9afb8a7a1a3e2eaeacd34579386139654049e (diff)
downloadbrdo-4fad80e53822ca8d9a62098cfc7f23db1c4ea3e0.tar.gz
brdo-4fad80e53822ca8d9a62098cfc7f23db1c4ea3e0.tar.bz2
- Patch #7638 by nereocystis: fixed PostgreSQL (ANSI SQL) compatibility bug in the comment module.
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 841197d3f..6e490ee16 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -986,10 +986,10 @@ function comment_mod_matrix($edit) {
db_query("DELETE FROM {moderation_roles} ");
foreach ($edit as $role_id => $votes) {
foreach ($votes as $mid => $value) {
- $sql[] = "('$mid', '$role_id', '". ($value ? $value : 0) ."')";
+ $sql = "('$mid', '$role_id', '". ($value ? $value : 0) ."')";
+ db_query("INSERT INTO {moderation_roles} (mid, rid, value) VALUES ". $sql);
}
}
- db_query("INSERT INTO {moderation_roles} (mid, rid, value) VALUES ". implode(", ", $sql));
drupal_set_message(t("the vote values have been saved."));
}