public static function ticket_entry_is_required($id = 0) { $database = $_SESSION['database']; $employees_roles_query = $database->query("select roles_id from " . TABLE_EMPLOYEES_ROLES . " where employees_roles_id = '" . (int) $id . "'"); $employees_roles_result = $database->fetch_array($employees_roles_query); return role::ticket_entry_is_required($employees_roles_result['roles_id']); }