mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-28 10:19:21 +02:00
Fix displaying spells when level = 0
This commit is contained in:
parent
91fd6cb4e6
commit
d94499af86
@ -43,7 +43,7 @@ else {
|
|||||||
|
|
||||||
$order = 'name';
|
$order = 'name';
|
||||||
$spells = array();
|
$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') {
|
if((string)$vocation_id != 'all') {
|
||||||
foreach($spells_db->fetchAll() as $spell) {
|
foreach($spells_db->fetchAll() as $spell) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user