From ffa37160a581e994193d0fb8576243bbe529f57b Mon Sep 17 00:00:00 2001 From: hide_d Date: Thu, 23 Apr 2020 01:11:40 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/b_tournament.php | 3 ++- hwe/sammo/Command/Nation/che_수몰.php | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) 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; }