Fix leaderboards

This commit is contained in:
Lncvrt committed 2026-01-19 17:47:17 -07:00
1 parent 8e6a9ef156
commit 594e924ad4
1 file changed
+2 -2
+2 -2
View File
@@ -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();