Minor code changes (#967)

This commit is contained in:
Cønstantine K ̷o̷valensky 2023-10-12 15:55:35 +04:00 committed by GitHub
commit 4e81338e0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -189,7 +189,7 @@ if ($lp_info) {
$tor_type = $row['tor_type']; $tor_type = $row['tor_type'];
// Check hybrid torrents // Check hybrid torrents
if (!empty($row['info_hash']) && !empty($row['info_hash_v2'])) { if (!empty($row['info_hash'], $row['info_hash_v2'])) {
// Helpful dev variables // Helpful dev variables
$is_hybrid = true; $is_hybrid = true;
$hybrid_v1_hash = &$row['info_hash']; $hybrid_v1_hash = &$row['info_hash'];
@ -296,7 +296,7 @@ if ($bb_cfg['tracker']['freeleech'] && $down_add) {
// Insert / update peer info // Insert / update peer info
$peer_info_updated = false; $peer_info_updated = false;
$update_time = ($stopped) ? 0 : TIMENOW; $update_time = ($stopped) ? 0 : TIMENOW;
if (isset($is_hybrid, $hybrid_tor_update) || !isset($is_hybrid)) { // Update statistics only for one topic if (isset($hybrid_tor_update) || !isset($is_hybrid)) { // Update statistics only for one topic
if ($lp_info) { if ($lp_info) {
$sql = "UPDATE " . BB_BT_TRACKER . " SET update_time = $update_time"; $sql = "UPDATE " . BB_BT_TRACKER . " SET update_time = $update_time";