diff --git a/upload/memberlist.php b/upload/memberlist.php index 91cd53ca7..fc0ff96bd 100644 --- a/upload/memberlist.php +++ b/upload/memberlist.php @@ -202,7 +202,7 @@ if ($result = DB()->fetch_rowset($sql)) 'PM' => $pm, 'EMAIL' => $email, 'WWW' => $www, - 'U_VIEWPROFILE' => "profile.php?mode=viewprofile&". POST_USERS_URL ."=$user_id", + 'U_VIEWPROFILE' => PROFILE_URL . $user_id, )); } } diff --git a/upload/viewforum.php b/upload/viewforum.php index 105831625..87f012a21 100644 --- a/upload/viewforum.php +++ b/upload/viewforum.php @@ -68,7 +68,7 @@ if (!$is_auth['auth_view']) { if (IS_GUEST) { - $redirect .= ($start) ? "&start=$start" : ''; + $redirect = ($start) ? "&start=$start" : ''; redirect(LOGIN_URL . "?redirect=". FORUM_URL . $forum_id ."&$redirect"); } // The user is not authed to read this forum ...