From 30f8587ad035053578d6b7bf75c3b418ea083c21 Mon Sep 17 00:00:00 2001 From: Matthijs Kuiper Date: Tue, 9 Jan 2018 01:50:33 +0100 Subject: Fix pu_boots error --- html/pages/match_info_other.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'html/pages/match_info_other.php') diff --git a/html/pages/match_info_other.php b/html/pages/match_info_other.php index 7f9cf18..b92ae74 100755 --- a/html/pages/match_info_other.php +++ b/html/pages/match_info_other.php @@ -5,7 +5,7 @@ include('includes/weaponstats.php'); weaponstats($mid, NULL); echo '
- +
@@ -70,7 +70,7 @@ if ((strpos($gamename, '(insta)') === false) && (strpos($gamename, "Last Man Sta $contentTable = ""; $sql_pickups = "SELECT p.pid, pi.name, p.country, SUM(p.pu_pads) AS pu_pads, SUM(p.pu_armour) AS pu_armour, SUM(p.pu_keg) AS pu_keg, - SUM(p.pu_invis) AS pu_invis, SUM(p.pu_belt) AS pu_belt, SUM(p.pu_amp) AS pu_amp, SUM(p.pu_boots) AS pu_boots + SUM(p.pu_invis) AS pu_invis, SUM(p.pu_belt) AS pu_belt, SUM(p.pu_amp) AS pu_amp FROM uts_player as p, uts_pinfo AS pi WHERE p.pid = pi.id AND pi.banned <> 'Y' AND matchid = $mid GROUP BY pid, p.country @@ -85,8 +85,9 @@ if ((strpos($gamename, '(insta)') === false) && (strpos($gamename, "Last Man Sta $r_pname = $r_pickups[name]; $myurl = urlencode($r_pname); - if(!$anyPickups && ($r_pickups[pu_pads] > 0 || $r_pickups[pu_armour] > 0 || $r_pickups[pu_keg] > 0 || $r_pickups[pu_invis] > 0 || $r_pickups[pu_belt] > 0 || $r_pickups[pu_amp] > 0 || $r_pickups[pu_boots] > 0)) + if (!$anyPickups && ($r_pickups[pu_pads] > 0 || $r_pickups[pu_armour] > 0 || $r_pickups[pu_keg] > 0 || $r_pickups[pu_invis] > 0 || $r_pickups[pu_belt] > 0 || $r_pickups[pu_amp] > 0)) { $anyPickups = true; + } $contentTable .= ' @@ -97,13 +98,12 @@ if ((strpos($gamename, '(insta)') === false) && (strpos($gamename, "Last Man Sta - '; } if ($anyPickups) { echo '
Special Events
'.$r_pickups[pu_invis].' '.$r_pickups[pu_belt].' '.$r_pickups[pu_amp].''.$r_pickups[pu_boots].'

- +
@@ -115,14 +115,13 @@ if ((strpos($gamename, '(insta)') === false) && (strpos($gamename, "Last Man Sta - '; echo $contentTable; } } -echo'
Pickups Summary
Invisibility Shield
Belt
Damage AmpAntigrav Boots
'; +echo ''; /* // To add when forum widget is available -- cgit