From a43de55776e1a0e5377a5a9ca872756d0f6ed1b8 Mon Sep 17 00:00:00 2001 From: Bram Suurd <78373894+BramSuurdje@users.noreply.github.com> Date: Mon, 30 Jun 2025 00:30:21 +0200 Subject: [PATCH] Implement logic to skip categories with zero items in index.php, improving the display of available weapon categories and enhancing user experience. --- website/index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/website/index.php b/website/index.php index 650f189d..da439cb7 100644 --- a/website/index.php +++ b/website/index.php @@ -145,6 +145,11 @@ if (isset($_SESSION['steamid'])) { } } } + + // Skip categories with 0 items + if ($weaponCount == 0) { + continue; + } ?>