Merge branch 'lars' into 'master'

Lars

See merge request !152
This commit was merged in pull request #156.
This commit is contained in:
Lars van Hijfte
2017-01-30 15:41:32 +01:00
14 changed files with 303 additions and 117 deletions

View File

@@ -15,7 +15,7 @@ function getOldChatMessages($user2ID) {
`origin` = :user2 AND
`destination` = :user1
ORDER BY
`messageID` ASC
`creationdate` ASC
");
$stmt->bindParam(":user1", $user1ID);
@@ -74,7 +74,7 @@ function getNewChatMessages($lastID, $destination) {
`destination` = :user1) AND
`messageID` > :lastID
ORDER BY
`messageID` ASC
`creationdate` ASC
");
$stmt->bindParam(':user1', $_SESSION["userID"]);