diff --git a/hwe/_admin2_submit.php b/hwe/_admin2_submit.php index ec389ac0..d9f3c5df 100644 --- a/hwe/_admin2_submit.php +++ b/hwe/_admin2_submit.php @@ -208,7 +208,7 @@ switch($btn) { ], '`no` IN %li', $genlist); break; case "메세지 전달": - $text = $msg; + $text = $msg??''; foreach($genlist as $generalID){ $msg = new Message(Message::MSGTYPE_PRIVATE, $src, MessageTarget::buildQuick($generalID), $text, new \DateTime(), new \DateTime('9999-12-31'), []); $msg->send(true); diff --git a/hwe/_admin4_submit.php b/hwe/_admin4_submit.php index 2933ec2b..6010a0bb 100644 --- a/hwe/_admin4_submit.php +++ b/hwe/_admin4_submit.php @@ -71,7 +71,7 @@ switch($btn) { $src, MessageTarget::buildQuick($genlist[$i]), $msg, - new DateTime(), + new \DateTime(), new \DateTime('9999-12-31'), [] ); diff --git a/hwe/b_currentCity.php b/hwe/b_currentCity.php index 66318672..d9cc86b6 100644 --- a/hwe/b_currentCity.php +++ b/hwe/b_currentCity.php @@ -138,7 +138,7 @@ if($myNation['level'] > 0) { $spyCities = array_map(function($val){ $val = intval($val); return intdiv($val, 10); - }, 'intval',explode('|', $myNation['spy'])); + }, explode('|', $myNation['spy'])); } else{ $spyCities = array_keys(Json::decode($rawSpy)); diff --git a/hwe/commandlist.php b/hwe/commandlist.php index 7997fcd7..751e349e 100644 --- a/hwe/commandlist.php +++ b/hwe/commandlist.php @@ -90,7 +90,7 @@ function myCommandList() { echo "