From df00641290c60994f2494fda1c553e4bde5d8fdf Mon Sep 17 00:00:00 2001 From: thisgun Date: Tue, 15 Apr 2025 11:20:44 +0900 Subject: [PATCH] =?UTF-8?q?php=20warning=20=EB=A9=94=EC=8B=9C=EC=A7=80=20?= =?UTF-8?q?=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/password.php | 4 ++-- bbs/register_result.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bbs/password.php b/bbs/password.php index 9329b45a0..4025048b2 100644 --- a/bbs/password.php +++ b/bbs/password.php @@ -23,7 +23,7 @@ switch ($w) { break; case 's' : // 비밀번호 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감 - if ($is_admin || ($member['mb_id'] == $write['mb_id'] && $write['mb_id'])) + if ($is_admin || (isset($write['mb_id']) && $write['mb_id'] && $member['mb_id'] == $write['mb_id'])) goto_url(short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id)); else { $action = https_url(G5_BBS_DIR).'/password_check.php'; @@ -32,7 +32,7 @@ switch ($w) { break; case 'sc' : // 비밀번호 창에서 로그인 하는 경우 관리자 또는 자신의 글이면 바로 글보기로 감 - if ($is_admin || ($member['mb_id'] == $write['mb_id'] && $write['mb_id'])) + if ($is_admin || (isset($write['mb_id']) && $write['mb_id'] && $member['mb_id'] == $write['mb_id'])) goto_url(short_url_clean(G5_HTTP_BBS_URL.'/board.php?bo_table='.$bo_table.'&wr_id='.$wr_id)); else { $action = https_url(G5_BBS_DIR).'/password_check.php'; diff --git a/bbs/register_result.php b/bbs/register_result.php index cc7523794..60ff7aab1 100644 --- a/bbs/register_result.php +++ b/bbs/register_result.php @@ -5,7 +5,7 @@ if (isset($_SESSION['ss_mb_reg'])) $mb = get_member($_SESSION['ss_mb_reg']); // 회원정보가 없다면 초기 페이지로 이동 -if (!$mb['mb_id']) +if (!(isset($mb['mb_id']) && $mb['mb_id'])) goto_url(G5_URL); $g5['title'] = '회원가입 완료';