mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-23 13:59:29 +00:00
Fix issue.
This commit is contained in:
parent
ed8ee8f04c
commit
af304d7409
@ -236,13 +236,13 @@ class Posts {
|
|||||||
|
|
||||||
//Prepare the request on the database
|
//Prepare the request on the database
|
||||||
//Add the visibility level conditions
|
//Add the visibility level conditions
|
||||||
$conditions = "WHERE niveau_visibilite <= ? AND (ID_personne = ?";
|
$conditions = "WHERE group_id = 0 AND niveau_visibilite <= ? AND (ID_personne = ?";
|
||||||
$dataConds = array($visibilityLevel, $userID);
|
$dataConds = array($visibilityLevel, $userID);
|
||||||
|
|
||||||
//Process the list of friends of the user
|
//Process the list of friends of the user
|
||||||
foreach($friendsList as $friend){
|
foreach($friendsList as $friend){
|
||||||
$friendID = $friend->getFriendID();
|
$friendID = $friend->getFriendID();
|
||||||
$conditions .= " OR (ID_personne = ? AND group_id = 0)";
|
$conditions .= " OR (ID_personne = ?)";
|
||||||
$dataConds[] = $friendID;
|
$dataConds[] = $friendID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user