ignore dummy items

This commit is contained in:
Hash Borgir 2023-06-05 23:44:28 -06:00
parent 60b2a7b629
commit 919cbc58e0

View File

@ -114,7 +114,7 @@ class D2Char {
FROM skills as sk FROM skills as sk
LEFT JOIN skilldesc ON sk.skilldesc = skilldesc.skilldesc LEFT JOIN skilldesc ON sk.skilldesc = skilldesc.skilldesc
LEFT JOIN strings on skilldesc.`str name` = strings.Key LEFT JOIN strings on skilldesc.`str name` = strings.Key
WHERE sk.charclass = '$class'"; WHERE sk.charclass = '$class' AND sk.skilldesc != 'dummy'";
$sd = PDO_FetchAll($sql); // Fetch skill data from the database $sd = PDO_FetchAll($sql); // Fetch skill data from the database
foreach ($sd as $k => $v) { foreach ($sd as $k => $v) {
$this->skillData[$k + 1] = $v; $this->skillData[$k + 1] = $v;