From 8bf0e9fe0141c1de94ff27e93c45f5df4b3c9e11 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 24 Jan 2024 00:13:52 +0700 Subject: [PATCH] Update topic_watch.php --- library/includes/ucp/topic_watch.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/library/includes/ucp/topic_watch.php b/library/includes/ucp/topic_watch.php index 54feaa03..fec1ca94 100644 --- a/library/includes/ucp/topic_watch.php +++ b/library/includes/ucp/topic_watch.php @@ -18,6 +18,13 @@ $page_cfg['include_bbcode_js'] = true; $tracking_topics = get_tracks('topic'); $user_id = $userdata['user_id']; +if (isset($_GET['uid'])) +{ + if ($userdata['user_id'] == $_GET['uid'] || IS_ADMIN) + { + $user_id = DB()->escape($_GET['uid']); + } +} $start = isset($_GET['start']) ? abs(intval($_GET['start'])) : 0; $per_page = $bb_cfg['topics_per_page'];