From 594e924ad4105c2c20a4920456d394d1ab47fb01 Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Mon, 19 Jan 2026 17:47:17 -0700 Subject: [PATCH] Fix leaderboards --- database/getTopPlayers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/getTopPlayers.php b/database/getTopPlayers.php index e21a56f..99411d5 100644 --- a/database/getTopPlayers.php +++ b/database/getTopPlayers.php @@ -49,7 +49,7 @@ foreach ($result->fetch_all(mode: MYSQLI_ASSOC) as $row) { $stmt->bind_param("i", $id); $stmt->execute(); $result2 = $stmt->get_result(); -$ $stmt->close(); + $stmt->close(); if ($result2->num_rows != 1) continue; $row2 = $result2->fetch_assoc(); @@ -67,7 +67,7 @@ $ $stmt->close(); $customIcon = $savedata['bird']['customIcon']['selected'] ?? null; - if ($customIcon != null && strlen($customIcon) == 36 && $icons[$customIcon] == null) { + if ($customIcon && strlen($customIcon) == 36 && empty($icons[$customIcon])) { $stmt = $conn1->prepare("SELECT data FROM marketplaceicons WHERE uuid = ?"); $stmt->bind_param("s", $customIcon); $stmt->execute();