diff --git a/library/includes/ucp/topic_watch.php b/library/includes/ucp/topic_watch.php index 269b1920..6591d4bc 100644 --- a/library/includes/ucp/topic_watch.php +++ b/library/includes/ucp/topic_watch.php @@ -18,11 +18,11 @@ $page_cfg['include_bbcode_js'] = true; $tracking_topics = get_tracks('topic'); $user_id = $userdata['user_id']; -if (isset($_GET['uid'])) +if (isset($_GET[POST_USERS_URL])) { - if (get_username($_GET['uid'])) + if (get_username($_GET[POST_USERS_URL])) { - if ($_GET['uid'] == $userdata['user_id'] || IS_ADMIN) $user_id = DB()->escape($_GET['uid']); + if ($_GET[POST_USERS_URL] == $userdata['user_id'] || IS_ADMIN) $user_id = DB()->escape($_GET[POST_USERS_URL]); else bb_die($lang['NOT_AUTHORISED']); } else bb_die($lang['USER_NOT_EXIST']); diff --git a/styles/templates/default/usercp_viewprofile.tpl b/styles/templates/default/usercp_viewprofile.tpl index 967205dc..e7c0586e 100644 --- a/styles/templates/default/usercp_viewprofile.tpl +++ b/styles/templates/default/usercp_viewprofile.tpl @@ -376,7 +376,7 @@ ajax.callback.gen_passkey = function(data){ [ {L_SEARCH_USER_POSTS} ] [ {L_SEARCH_USER_TOPICS} ] [ {L_SEARCH_RELEASES} ] - [ {L_WATCHED_TOPICS} ] + [ {L_WATCHED_TOPICS} ] [ {FEED_IMG} ]