Fixed bugs #112

Merged
11291680 merged 1 commits from lars into master 2017-01-24 15:17:20 +01:00
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";