diff options
-rwxr-xr-x | cloud_comments.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cloud_comments.module b/cloud_comments.module index 5eb556b..2addaf9 100755 --- a/cloud_comments.module +++ b/cloud_comments.module @@ -142,7 +142,7 @@ function cloud_comments_reply_form($form_state, $comment_id) { function cloud_comments_reply_form_submit($form, &$form_state) { global $user; - $query = "UPDATE {scilab_cloud_comment} SET reply = '%s', user= '%s' reply_status = 1 WHERE id = %d"; + $query = "UPDATE {scilab_cloud_comment} SET reply = '%s', user= '%s', reply_status = 1 WHERE id = %d"; $query_result = db_query($query, $form_state["values"]["content"], $user->name, $form_state["values"]["hidden"]); $email_query = "SELECT email FROM {scilab_cloud_comment} WHERE id = %d"; @@ -154,6 +154,7 @@ function cloud_comments_reply_form_submit($form, &$form_state) { 'subject' => t("Comment Reply"), 'body' => t($form_state["values"]["content"]), 'headers' => array("From" => "textbook@scilab.in", "Content-type" => "text/html; charset=iso-8859-1") + ); drupal_mail_send($message); |