추천인 입력이 있는 경우에만 검사하도록 수정

This commit is contained in:
gnuboard
2013-05-02 14:41:50 +09:00
parent b5cca60663
commit 60b7649f6f

View File

@ -214,7 +214,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<?php if ($w == "" && $config['cf_use_recommend']) { ?>
<tr>
<th scope="row"><label for="reg_mb_recommend">추천인아이디</label></th>
<td><input type="text" name="mb_recommend" id="reg_mb_recommend" class="frm_input" required></td>
<td><input type="text" name="mb_recommend" id="reg_mb_recommend" class="frm_input"></td>
</tr>
<?php } ?>
@ -337,7 +337,7 @@ function fregisterform_submit(f)
}
}
if (typeof(f.mb_recommend) != 'undefined') {
if (typeof(f.mb_recommend) != 'undefined' && f.mb_recommend.value) {
if (f.mb_id.value == f.mb_recommend.value) {
alert('본인을 추천할 수 없습니다.');
f.mb_recommend.focus();