캐릭터 게시판 : 기본 전신 설정 버그 수정

캐릭터 게시판에서, 기본 전신 설정 시 발생하는 버그를 수정하였습니다.
This commit is contained in:
TATECK 2023-05-28 18:30:16 +09:00
parent f0d7b990bd
commit ea6d617ae2

View file

@ -10,18 +10,13 @@ if(!$is_admin) {
}
}
sql_query("update {$g5['character_body_table']} set bd_use = '' where wr_id = '{$wr_id}'");
$bd = sql_fetch("select * from {$g5['character_body_table']} where bd_id = '{$bd_id}'");
if($bd['bd_id']) {
$sql = " update {$g5['character_body_table']}
set bd_use = '1'
where bd_id = '{$bd['bd_id']}'";
sql_query($sql);
} else {
$sql = " update {$g5['character_body_table']}
set bd_use = ''
where wr_id = '{$wr_id}'";
sql_query($sql);
}
?>