The menu now backend supported

It loads the friends and groups of userID 2 by default (only if there is no session userID set
This commit is contained in:
Lars van Hijfte
2017-01-17 14:16:17 +01:00
parent 10d3e177ae
commit 6385324b13
6 changed files with 120 additions and 95 deletions

View File

@@ -15,8 +15,9 @@ function selectAllFriends($db, $userID) {
`friendship`.`user1ID` = $userID AND
`friendship`.`user2ID` = `user`.`userID` OR
`friendship`.`user2ID` = $userID AND
`friendship`.`user1ID` = `user`.`userID`"
);
`friendship`.`user1ID` = `user`.`userID` AND
`user`.`role` != 3
");
}