Marijn button #99

Merged
11166932 merged 152 commits from marijn-button into master 2017-01-23 13:25:08 +01:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 1db998c1bd - Show all commits

View File

@@ -42,12 +42,11 @@ function nicetime($date) {
}
if(empty($_GET["username"])) {
echo "User does not exist!";
return;
$userID = $_SESSION["userID"];
} else {
$userID = getUserID($_GET["username"]);
}
$userID = getUserID($_GET["username"]);
$user = selectUser($userID);
$profile_friends = selectAllFriends($userID);
$profile_groups = selectAllUserGroups($userID);

View File

@@ -1,4 +1,5 @@
<?php
require("connect.php");
function getUserID($username) {