mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Minor code changes (#967)
This commit is contained in:
parent
f2b93b68aa
commit
4e81338e0d
1 changed files with 2 additions and 2 deletions
|
@ -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";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue