Fixed queries and profile page.

This commit is contained in:
K. Nobel
2017-01-19 12:01:39 +01:00
parent b37d06e2cc
commit 84719529bb
5 changed files with 20 additions and 18 deletions

View File

@@ -46,12 +46,12 @@ if(empty($_GET["username"])) {
return;
}
$userID = getUserID($db, $_GET["username"]);
$userID = getUserID($_GET["username"]);
$user = selectUser($db, $userID);
$friends = selectAllFriends($db, $userID);
$groups = selectAllUserGroups($db, $userID);
$posts = selectAllUserPosts($db, $userID);
$user = selectUser($userID);
$profile_friends = selectAllFriends($userID);
$profile_groups = selectAllUserGroups($userID);
$posts = selectAllUserPosts($userID);
?>