diff --git a/hwe/b_tournament.php b/hwe/b_tournament.php index 00eac78e..e36d68ee 100644 --- a/hwe/b_tournament.php +++ b/hwe/b_tournament.php @@ -394,7 +394,8 @@ for ($i=0; $i < 16; $i++) { echo" "; -$globalBet = array_splice($db->queryFirstList('SELECT * FROM betting WHERE general_id = 0'), -16); +$globalBet = $db->queryFirstList('SELECT * FROM betting WHERE general_id = 0')??[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ]; +$globalBet = array_splice($globalBet, -16); $globalBetTotal = array_sum($globalBet); $admin = $gameStor->getValues(['tournament', 'phase']); $bet = []; diff --git a/hwe/sammo/Command/Nation/che_수몰.php b/hwe/sammo/Command/Nation/che_수몰.php index 6061ba59..3907f5c5 100644 --- a/hwe/sammo/Command/Nation/che_수몰.php +++ b/hwe/sammo/Command/Nation/che_수몰.php @@ -31,6 +31,9 @@ class che_수몰 extends Command\NationCommand{ static public $reqArg = true; protected function argTest():bool{ + if($this->arg === null){ + return false; + } if(!key_exists('destCityID', $this->arg)){ return false; }