From 6f560a1b348bb7067a3c8c4791cf976d237b3e29 Mon Sep 17 00:00:00 2001 From: hide_d Date: Mon, 14 Feb 2022 00:26:42 +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/sammo/Betting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwe/sammo/Betting.php b/hwe/sammo/Betting.php index 191fa9b0..f2829ef6 100644 --- a/hwe/sammo/Betting.php +++ b/hwe/sammo/Betting.php @@ -137,7 +137,7 @@ class Betting private function _calcRewardExclusive(array $bettingType): array { $db = DB::db(); - $totalAmount = $db->queryFirstField('SELECT sum(amount) FROM ng_betting WHERE betting_id = %i'); + $totalAmount = $db->queryFirstField('SELECT sum(amount) FROM ng_betting WHERE betting_id = %i', $this->bettingID); if ($totalAmount == 0) { return [];