diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-02-09 09:09:03 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-02-09 09:09:03 +0000 |
commit | 1819de963f09f03a93be7c328a519475a8b45aee (patch) | |
tree | e32f5322354ceaed60e36a706b66def39c799b40 | |
parent | 993f5a486527b63702a17513b8c6b35e09da9c08 (diff) | |
download | brdo-1819de963f09f03a93be7c328a519475a8b45aee.tar.gz brdo-1819de963f09f03a93be7c328a519475a8b45aee.tar.bz2 |
- #48518: Editing own comment broken under postgresl
-rw-r--r-- | modules/comment.module | 2 | ||||
-rw-r--r-- | modules/comment/comment.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment.module b/modules/comment.module index b760b82a4..d34f0fcd9 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -540,7 +540,7 @@ function comment_save($edit) { if ($edit['cid']) { // Update the comment in the database. - db_query("UPDATE {comments} SET status = '%s', timestamp = %d, subject = '%s', comment = '%s', format = '%s', uid = %d, name = '%s', mail = '%s', homepage = '%s' WHERE cid = %d", $edit['status'], $edit['timestamp'], $edit['subject'], $edit['comment'], $edit['format'], $edit['uid'], $edit['name'], $edit['mail'], $edit['homepage'], $edit['cid']); + db_query("UPDATE {comments} SET status = %d, timestamp = %d, subject = '%s', comment = '%s', format = %d, uid = %d, name = '%s', mail = '%s', homepage = '%s' WHERE cid = %d", $edit['status'], $edit['timestamp'], $edit['subject'], $edit['comment'], $edit['format'], $edit['uid'], $edit['name'], $edit['mail'], $edit['homepage'], $edit['cid']); _comment_update_node_statistics($edit['nid']); diff --git a/modules/comment/comment.module b/modules/comment/comment.module index b760b82a4..d34f0fcd9 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -540,7 +540,7 @@ function comment_save($edit) { if ($edit['cid']) { // Update the comment in the database. - db_query("UPDATE {comments} SET status = '%s', timestamp = %d, subject = '%s', comment = '%s', format = '%s', uid = %d, name = '%s', mail = '%s', homepage = '%s' WHERE cid = %d", $edit['status'], $edit['timestamp'], $edit['subject'], $edit['comment'], $edit['format'], $edit['uid'], $edit['name'], $edit['mail'], $edit['homepage'], $edit['cid']); + db_query("UPDATE {comments} SET status = %d, timestamp = %d, subject = '%s', comment = '%s', format = %d, uid = %d, name = '%s', mail = '%s', homepage = '%s' WHERE cid = %d", $edit['status'], $edit['timestamp'], $edit['subject'], $edit['comment'], $edit['format'], $edit['uid'], $edit['name'], $edit['mail'], $edit['homepage'], $edit['cid']); _comment_update_node_statistics($edit['nid']); |