Fixed API

This commit is contained in:
Lars van Hijfte
2017-01-24 17:10:12 +01:00
parent 3de4e1387f
commit 12ed710369
2 changed files with 1 additions and 2 deletions

View File

@@ -15,7 +15,6 @@ include("../queries/nicetime.php");
if(empty($_GET["username"])) {
$userID = $_SESSION["userID"];
echo "USERNAME NOT GIVEN";
} else {
$userID = getUserID($_GET["username"]);
}

View File

@@ -2,7 +2,7 @@
<div class="profile-box platform">
<img class="left profile-picture" src="<?php echo $user["profilepicture"] ?>">
<form action="edit_friendship.php" method="post">
<form action="API/edit_friendship.php" method="post">
<input type="hidden" name="userID" value="<?= $userID ?>">
<?php
if($userID != $_SESSION["userID"] AND $user["friend_status"] == 0) {