Fixed bugs

This commit is contained in:
Lars van Hijfte
2017-01-24 15:16:15 +01:00
parent 0b705df09a
commit fd055e8355
2 changed files with 2 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ require_once("../../queries/friendship.php");
if (isset($_POST["lastID"]) && $_POST["lastID"] != "") { if (isset($_POST["lastID"]) && $_POST["lastID"] != "") {
echo getNewChatMessages(test_input($_POST["lastID"]), test_input($_POST["destination"])); echo getNewChatMessages(test_input($_POST["lastID"]), test_input($_POST["destination"]));
setLastVisited(test_input($_POST["destination"]));
} else { } else {
echo getOldChatMessages(test_input($_POST["destination"])); echo getOldChatMessages(test_input($_POST["destination"]));
setLastVisited(test_input($_POST["destination"])); setLastVisited(test_input($_POST["destination"]));

View File

@@ -16,6 +16,7 @@
// Set default values of a friend. // Set default values of a friend.
$username = $friend["username"]; $username = $friend["username"];
$name = $friend["name"];
$userID = $friend["userID"]; $userID = $friend["userID"];
$pf = "img/avatar-standard.png"; $pf = "img/avatar-standard.png";