mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fixed bug with showing hidden character
This commit is contained in:
parent
d4222e98e6
commit
f3061a0e74
@ -371,7 +371,7 @@ WHERE killers.death_id = '".$death['id']."' ORDER BY killers.final_hit DESC, kil
|
||||
$_player = new OTS_Player();
|
||||
$fields = array('id', 'name', 'vocation', 'level', 'online', 'deleted', 'hidden');
|
||||
$_player->load($p['id'], $fields, false);
|
||||
if($_player->isLoaded()) {
|
||||
if($_player->isLoaded() && !$_player->isHidden()) {
|
||||
$account_players[] = $_player;
|
||||
}
|
||||
}
|
||||
@ -450,4 +450,4 @@ else
|
||||
}
|
||||
|
||||
if(!empty($search_errors))
|
||||
$twig->display('error_box.html.twig', array('errors' => $search_errors));
|
||||
$twig->display('error_box.html.twig', array('errors' => $search_errors));
|
||||
|
Loading…
x
Reference in New Issue
Block a user