Profile will now show the current users page when a username is not given in a get request.
This commit is contained in:
@@ -42,11 +42,10 @@ function nicetime($date) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(empty($_GET["username"])) {
|
if(empty($_GET["username"])) {
|
||||||
echo "User does not exist!";
|
$userID = $_SESSION["userID"];
|
||||||
return;
|
} else {
|
||||||
}
|
|
||||||
|
|
||||||
$userID = getUserID($_GET["username"]);
|
$userID = getUserID($_GET["username"]);
|
||||||
|
}
|
||||||
|
|
||||||
$user = selectUser($userID);
|
$user = selectUser($userID);
|
||||||
$profile_friends = selectAllFriends($userID);
|
$profile_friends = selectAllFriends($userID);
|
||||||
|
|||||||
Reference in New Issue
Block a user