diff --git a/modules/comment.module b/modules/comment.module index b760b82a48405959d6b94cf6b814cb4360f2b844..d34f0fcd90becb2113029bfd61ff8a9a111d29eb 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 b760b82a48405959d6b94cf6b814cb4360f2b844..d34f0fcd90becb2113029bfd61ff8a9a111d29eb 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']);