Hendrik search #94

Merged
11342374 merged 12 commits from hendrik-search into master 2017-01-20 16:20:07 +01:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit cc9ec9d54a - 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) {