Fixed bug with showing hidden character

This commit is contained in:
whiteblXK 2020-07-06 23:07:18 +02:00 committed by GitHub
parent d4222e98e6
commit f3061a0e74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));