buildScoutMessage에서 null 반환 가능하던 문제 수정

This commit is contained in:
Hide_D committed 2018-06-16 00:42:48 +09:00
1 parent fa4e0c1948
commit 2ac1d82826
3 files changed
+5 -2

No files matched your search

+4 -1
View File
@@ -46,7 +46,10 @@ function process_22(&$general) {
$ded = CharDedication($ded, $general['personal']);
$msg = ScoutMessage::buildScoutMessage($general['no'], $who, $reason);
$msg->send(true);
if($msg){
$msg->send(true);
}
$general['intel2']++;
$query = "update general set resturn='SUCCESS',gold=gold-'$cost',intel2='{$general['intel2']}',dedication=dedication+'$ded',experience=experience+'$exp' where no='{$general['no']}'";