From dd5adb17a4931e8d603774c4b82add9a9b266905 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 24 Jan 2024 00:49:16 +0700 Subject: [PATCH] Update topic_watch.php --- library/includes/ucp/topic_watch.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/library/includes/ucp/topic_watch.php b/library/includes/ucp/topic_watch.php index 05613e7e..269b1920 100644 --- a/library/includes/ucp/topic_watch.php +++ b/library/includes/ucp/topic_watch.php @@ -18,16 +18,14 @@ $page_cfg['include_bbcode_js'] = true; $tracking_topics = get_tracks('topic'); $user_id = $userdata['user_id']; -if (isset($_GET['uid'])) { - if (get_username($_GET['uid'])) { - if ($_GET['uid'] == $userdata['user_id'] || IS_ADMIN) { - $user_id = DB()->escape($_GET['uid']); - } else { - bb_die($lang['NOT_AUTHORISED']); - } - } else { - bb_die($lang['USER_NOT_EXIST']); +if (isset($_GET['uid'])) +{ + if (get_username($_GET['uid'])) + { + if ($_GET['uid'] == $userdata['user_id'] || IS_ADMIN) $user_id = DB()->escape($_GET['uid']); + else bb_die($lang['NOT_AUTHORISED']); } + else bb_die($lang['USER_NOT_EXIST']); } $start = isset($_GET['start']) ? abs(intval($_GET['start'])) : 0; $per_page = $bb_cfg['topics_per_page'];