From 24d57cdd4bbb07b5fa9ea15d15f005bb8eeab19e Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 29 Apr 2016 15:26:21 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8A=A4=ED=81=AC=EB=9E=A9=20=EA=B2=8C?= =?UTF-8?q?=EC=8B=9C=EA=B8=80=20=EC=B2=B4=ED=81=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/scrap_popin_update.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bbs/scrap_popin_update.php b/bbs/scrap_popin_update.php index fdc90f9d2..5c94f90b6 100644 --- a/bbs/scrap_popin_update.php +++ b/bbs/scrap_popin_update.php @@ -10,6 +10,10 @@ if (!$is_member) exit; } +// 게시글 존재하는지 +if(!$write['wr_id']) + alert_close('스크랩하시려는 게시글이 존재하지 않습니다.'); + $sql = " select count(*) as cnt from {$g5['scrap_table']} where mb_id = '{$member['mb_id']}' and bo_table = '$bo_table'