mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fixed bug with showing hidden character
(cherry picked from commit f3061a0e74c19a75fda59a69a47a07fd757f671c)
This commit is contained in:
parent
25afbd935c
commit
1b802b040d
@ -371,7 +371,7 @@ WHERE killers.death_id = '".$death['id']."' ORDER BY killers.final_hit DESC, kil
|
|||||||
$_player = new OTS_Player();
|
$_player = new OTS_Player();
|
||||||
$fields = array('id', 'name', 'vocation', 'level', 'online', 'deleted', 'hidden');
|
$fields = array('id', 'name', 'vocation', 'level', 'online', 'deleted', 'hidden');
|
||||||
$_player->load($p['id'], $fields, false);
|
$_player->load($p['id'], $fields, false);
|
||||||
if($_player->isLoaded()) {
|
if($_player->isLoaded() && !$_player->isHidden()) {
|
||||||
$account_players[] = $_player;
|
$account_players[] = $_player;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -450,4 +450,4 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!empty($search_errors))
|
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