mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Use correct data types
This commit is contained in:
parent
9a01e395d9
commit
bc9f0e4d6f
1 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,8 @@ if (strlen($info_hash) == 32) {
|
||||||
msg_die('Invalid info_hash: ' . $info_hash);
|
msg_die('Invalid info_hash: ' . $info_hash);
|
||||||
}
|
}
|
||||||
// Hybrid torrent checks
|
// 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) {
|
if (!isset($port) || $port < 0 || $port > 0xFFFF) {
|
||||||
msg_die('Invalid port: ' . $port);
|
msg_die('Invalid port: ' . $port);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue