From bc9f0e4d6ffd92d03bcb7a47e8fe2fbf63946c3c Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 10 Sep 2023 21:35:17 +0700 Subject: [PATCH] Use correct data types --- bt/announce.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bt/announce.php b/bt/announce.php index 6c69d547f..34844faee 100644 --- a/bt/announce.php +++ b/bt/announce.php @@ -70,7 +70,8 @@ if (strlen($info_hash) == 32) { msg_die('Invalid info_hash: ' . $info_hash); } // Hybrid torrent checks -$is_hybrid = $hybrid_v1_hash = $hybrid_v2_hash = $hybrid_tor_update = false; +$is_hybrid = $hybrid_tor_update = false; +$hybrid_v1_hash = $hybrid_v2_hash = null; if (!isset($port) || $port < 0 || $port > 0xFFFF) { msg_die('Invalid port: ' . $port);