diff --git a/bt/announce.php b/bt/announce.php index 9a8648a35..43df5cda0 100644 --- a/bt/announce.php +++ b/bt/announce.php @@ -214,7 +214,7 @@ if ($lp_info) { // Check hybrid status if (!empty($row['info_hash']) && !empty($row['info_hash_v2'])) { - $stat_protocol = match ($bb_cfg['tracker']['hybrid_stat_protocol']) { + $stat_protocol = match ((int)$bb_cfg['tracker']['hybrid_stat_protocol']) { 1 => $row['info_hash'], 2 => substr($row['info_hash_v2'], 0, 20), default => $row['info_hash']