From 938c819e9aafff2529432b63eab91ab62d87e951 Mon Sep 17 00:00:00 2001 From: hide_d Date: Thu, 19 Apr 2018 00:19:56 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B2=A0=ED=8C=85=EC=9E=A5=20INF=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hwe/b_betting.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/hwe/b_betting.php b/hwe/b_betting.php index 8ffa78d5..4c9a9e1a 100644 --- a/hwe/b_betting.php +++ b/hwe/b_betting.php @@ -77,7 +77,11 @@ select { font-family:'굴림'; line-height:100%; } $query = "select npc,name,win from tournament where grp>=60 order by grp, grp_no"; $result = MYDB_query($query, $connect) or Error(__LINE__.MYDB_error($connect), ""); for ($i=0; $i < 1; $i++) { - $general = MYDB_fetch_array($result); + $general = MYDB_fetch_array($result)??[ + 'npc'=>0, + 'name'=>'', + 'win'=>0 + ]; if ($general['name'] == "") { $general['name'] = "-"; } @@ -284,10 +288,12 @@ for ($i=0; $i < 16; $i++) { } for ($i=0; $i < 16; $i++) { - $bet[$i] = @round($admin['bet'] / $admin["bet{$i}"], 2); - if ($bet[$i] == 0) { + if($admin["bet{$i}"] == 0){ $bet[$i] = "∞"; } + else{ + $bet[$i] = round($admin['bet'] / $admin["bet{$i}"], 2); + } } for ($i=0; $i < 16; $i++) {