From f4fc5d7cdf386360374fe9a7c8ea3754e06f0cdf Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Thu, 7 Sep 2023 00:49:53 +0700 Subject: [PATCH] Minor improvements (#890) --- library/config.php | 2 +- src/Legacy/Post.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/config.php b/library/config.php index 3152d023d..1d0bc25f0 100644 --- a/library/config.php +++ b/library/config.php @@ -94,7 +94,7 @@ $bb_cfg['script_path'] = '/'; // The path where FORUM is located relative to the $bb_cfg['gzip_compress'] = false; // compress output // Tracker -$bb_cfg['announce_interval'] = 2400; // Announce interval (default: 1800) +$bb_cfg['announce_interval'] = 2400; // Announce interval (default: 2400) $bb_cfg['passkey_key'] = 'uk'; // Passkey key name in GET request $bb_cfg['ignore_reported_ip'] = false; // Ignore IP reported by client $bb_cfg['verify_reported_ip'] = true; // Verify IP reported by client against $_SERVER['HTTP_X_FORWARDED_FOR'] diff --git a/src/Legacy/Post.php b/src/Legacy/Post.php index e33c1783c..1a12c7b46 100644 --- a/src/Legacy/Post.php +++ b/src/Legacy/Post.php @@ -350,7 +350,7 @@ class Post $watch_list = DB()->fetch_rowset("SELECT u.username, u.user_id, u.user_email, u.user_lang FROM " . BB_TOPICS_WATCH . " tw, " . BB_USERS . " u WHERE tw.topic_id = $topic_id - AND tw.user_id NOT IN (" . $userdata['user_id'] . ", " . EXCLUDED_USERS . $get_banned_users . ") + AND tw.user_id NOT IN ({$userdata['user_id']}, " . EXCLUDED_USERS . $get_banned_users . ") AND tw.notify_status = " . TOPIC_WATCH_NOTIFIED . " AND u.user_id = tw.user_id AND u.user_active = 1