Some bugfixes (#1380)

* Some bugfixes

* Update CHANGELOG.md

* Updated

* Update privmsg.php

* Update displaying_torrent.php

* Update privmsg.php
This commit is contained in:
Roman Kelesidis 2024-02-06 14:30:00 +07:00 committed by GitHub
commit 65d9f6d864
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 24 additions and 5 deletions

View file

@ -153,7 +153,7 @@ if ($tor_reged && $tor_info) {
$dl_allowed = true;
$user_ratio = 0;
if (($min_ratio_dl || $min_ratio_warn) && $bt_user_id != $poster_id) {
if (($min_ratio_dl || $min_ratio_warn) && ($bt_user_id != $poster_id && $bt_user_id != GUEST_UID)) {
$sql = "SELECT u.*, dl.user_status
FROM " . BB_BT_USERS . " u
LEFT JOIN " . BB_BT_DLSTATUS . " dl ON dl.user_id = $bt_user_id AND dl.topic_id = $bt_topic_id