From ec075413b3fd315d8756da13487700a70ce30575 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 26 May 2014 11:36:59 +0900 Subject: [PATCH] =?UTF-8?q?sns=20=EB=93=B1=EB=A1=9D=20=EA=B4=80=EB=A0=A8?= =?UTF-8?q?=20=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/write_comment_update.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bbs/write_comment_update.php b/bbs/write_comment_update.php index 5d4d8a919..f03b6863a 100644 --- a/bbs/write_comment_update.php +++ b/bbs/write_comment_update.php @@ -155,8 +155,6 @@ if ($w == 'c') // 댓글 입력 wr_datetime = '".G5_TIME_YMDHIS."', wr_last = '', wr_ip = '{$_SERVER['REMOTE_ADDR']}', - wr_facebook_user = '$wr_facebook_user', - wr_twitter_user = '$wr_twitter_user', wr_1 = '$wr_1', wr_2 = '$wr_2', wr_3 = '$wr_3', @@ -238,6 +236,12 @@ if ($w == 'c') // 댓글 입력 // SNS 등록 include_once("./write_comment_update.sns.php"); + if($wr_facebook_user || $wr_twitter_user) { + $sql = " update $write_table + set wr_facebook_user = '$wr_facebook_user', + wr_twitter_user = '$wr_twitter_user' + where wr_id = '$comment_id' "; + } } else if ($w == 'cu') // 댓글 수정 {