Added a notification bar

This commit is contained in:
Lars van Hijfte
2017-01-20 16:17:56 +01:00
parent 61c148e127
commit 173ef3e50c
6 changed files with 56 additions and 30 deletions

View File

@@ -15,13 +15,14 @@ function selectAllFriends($userID) {
`user`
INNER JOIN
`friendship`
WHERE
(`friendship`.`user1ID` = :userID AND
`friendship`.`user2ID` = `user`.`userID` OR
`friendship`.`user2ID` = :userID AND
`friendship`.`user1ID` = `user`.`userID`) AND
`role` != 5 AND
`status` = 1
`status` = 1
");
$stmt->bindParam(':userID', $userID, PDO::PARAM_INT);