From 7e566bbfdee4840c86c54d3d3f3d3b8d1d0869c5 Mon Sep 17 00:00:00 2001 From: Nathan <22945585+Penlo@users.noreply.github.com> Date: Tue, 22 Aug 2023 10:54:29 -0500 Subject: [PATCH] Update view_map.php Fixed an issue with the logic where the trophy icon was being applied for the top 3 players on each page rather than the top 3 players for the map overall --- assets/pages/view_map.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/pages/view_map.php b/assets/pages/view_map.php index 991c286..99c0e46 100644 --- a/assets/pages/view_map.php +++ b/assets/pages/view_map.php @@ -103,7 +103,7 @@ if ($result->num_rows > 0) { // output data of each row - $x=1; + $x = ($page_start / 50) * 50 + 1; while($row = $result->fetch_assoc()) { if($x<=3) { echo "".$row["name"]." ".processFloat($row["runtimepro"])."".$row["date"]."".$row["startspeed"]." u/s"; @@ -118,4 +118,4 @@ -close(); } ?> \ No newline at end of file +close(); } ?>