mirror of
https://github.com/Nereziel/cs2-WeaponPaints.git
synced 2026-02-23 20:08:51 +00:00
Implement logic to skip categories with zero items in index.php, improving the display of available weapon categories and enhancing user experience.
This commit is contained in:
@@ -145,6 +145,11 @@ if (isset($_SESSION['steamid'])) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Skip categories with 0 items
|
||||
if ($weaponCount == 0) {
|
||||
continue;
|
||||
}
|
||||
?>
|
||||
<div class="nav-category">
|
||||
<div class="nav-item category-header" data-category="<?php echo strtolower($categoryName); ?>" onclick="toggleCategory('<?php echo strtolower($categoryName); ?>')">
|
||||
|
||||
Reference in New Issue
Block a user