Skip to content

Commit

Permalink
Fill up the equipment variable no matter of config
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Mar 28, 2024
1 parent 6334f3f commit 2afe0c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/pages/characters.php
Expand Up @@ -199,7 +199,7 @@ function retrieve_former_name($name)
unset($storage);
}

if($config['characters']['equipment'] && $db->hasTable('player_items') && $db->hasColumn('player_items', 'pid') && $db->hasColumn('player_items', 'sid') && $db->hasColumn('player_items', 'itemtype')) {
if($db->hasTable('player_items') && $db->hasColumn('player_items', 'pid') && $db->hasColumn('player_items', 'sid') && $db->hasColumn('player_items', 'itemtype')) {
$eq_sql = $db->query('SELECT `pid`, `itemtype` FROM player_items WHERE player_id = '.$player->getId().' AND (`pid` >= 1 and `pid` <= 10)');
$equipment = array();
foreach($eq_sql as $eq)
Expand Down

0 comments on commit 2afe0c1

Please sign in to comment.