diff --git a/adm/member_list.php b/adm/member_list.php index cbcd77d92..9e23e76c1 100644 --- a/adm/member_list.php +++ b/adm/member_list.php @@ -186,7 +186,7 @@ $colspan = 16; if ($intercept_title == '') $intercept_title = '차단하기'; - $address = $row['mb_zip1'] ? print_address($row['mb_addr1'], $row['mb_addr2'], $row['mb_addr3']) : ''; + $address = $row['mb_zip1'] ? print_address($row['mb_addr1'], $row['mb_addr2'], $row['mb_addr3'], $row['mb_addr_jibeon']) : ''; $bg = 'bg'.($i%2); diff --git a/lib/common.lib.php b/lib/common.lib.php index cefddb0aa..c0dfc9ae0 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -2579,19 +2579,23 @@ function module_exec_check($exe, $type) return $error; } -// 도로명주소 출력 // 주소출력 -function print_address($addr1, $addr2, $addr3) +function print_address($addr1, $addr2, $addr3, $addr4) { $address = trim($addr1); $addr2 = trim($addr2); $addr3 = trim($addr3); - if($addr2) - $address .= ', '.$addr2; + if($addr4 == 'N') { + if($addr2) + $address .= ' '.$addr2; + } else { + if($addr2) + $address .= ', '.$addr2; - if($addr3) - $address .= ' '.$addr3; + if($addr3) + $address .= ' '.$addr3; + } return $address; }