Fixed bugs
This commit is contained in:
@@ -9,6 +9,7 @@ require_once("../../queries/friendship.php");
|
||||
|
||||
if (isset($_POST["lastID"]) && $_POST["lastID"] != "") {
|
||||
echo getNewChatMessages(test_input($_POST["lastID"]), test_input($_POST["destination"]));
|
||||
setLastVisited(test_input($_POST["destination"]));
|
||||
} else {
|
||||
echo getOldChatMessages(test_input($_POST["destination"]));
|
||||
setLastVisited(test_input($_POST["destination"]));
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
// Set default values of a friend.
|
||||
$username = $friend["username"];
|
||||
$name = $friend["name"];
|
||||
$userID = $friend["userID"];
|
||||
$pf = "img/avatar-standard.png";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user