Merge pull request #22 from daffyyyy/improvement-website-1

Always show player skin as selected option
This commit is contained in:
Nereziel
2023-11-14 15:22:44 +01:00
committed by GitHub

View File

@@ -78,6 +78,9 @@ else
<?php
$list = $db->select("SELECT * FROM wp_weapons_paints WHERE weapon_defindex = \"{$key["weapon_defindex"]}\"");
foreach ($list as $list) {
if ($list['paint_name'] == $query3[0]["paint_name"])
echo "<option selected value=\"{$list['weapon_defindex']}-{$list['paint']}\">{$list['paint_name']}</option>";
else
echo "<option value=\"{$list['weapon_defindex']}-{$list['paint']}\">{$list['paint_name']}</option>";
}
?>