diff --git a/engine/function/general.php b/engine/function/general.php index 74a0a68..e318e21 100644 --- a/engine/function/general.php +++ b/engine/function/general.php @@ -325,7 +325,7 @@ function online_id_to_name($id) { // Parameter: players.vocation_id. Returns: Configured vocation name. function vocation_id_to_name($id) { $vocations = config('vocations'); - return ($vocations[$id] >= 0) ? $vocations[$id]['name'] : false; + return (isset($vocations[$id]['name'])) ? $vocations[$id]['name'] : "{$id} - Unknown"; } // Parameter: players.name. Returns: Configured vocation id.