Fix displaying spells when level = 0

This commit is contained in:
slawkens 2020-02-29 23:14:42 +01:00
parent 91fd6cb4e6
commit d94499af86

View File

@ -43,7 +43,7 @@ else {
$order = 'name';
$spells = array();
$spells_db = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'spells` WHERE `hidden` != 1 AND `type` < 4 AND `level` > 0 ORDER BY ' . $order . '');
$spells_db = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'spells` WHERE `hidden` != 1 AND `type` < 4 ORDER BY ' . $order . '');
if((string)$vocation_id != 'all') {
foreach($spells_db->fetchAll() as $spell) {