Lars #114

Merged
11291680 merged 1 commits from lars into master 2017-01-24 17:11:10 +01:00
2 changed files with 1 additions and 2 deletions
Showing only changes of commit 12ed710369 - Show all commits

View File

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

View File

@@ -2,7 +2,7 @@
<div class="profile-box platform"> <div class="profile-box platform">
<img class="left profile-picture" src="<?php echo $user["profilepicture"] ?>"> <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 ?>"> <input type="hidden" name="userID" value="<?= $userID ?>">
<?php <?php
if($userID != $_SESSION["userID"] AND $user["friend_status"] == 0) { if($userID != $_SESSION["userID"] AND $user["friend_status"] == 0) {