mirror of
				https://github.com/pierre42100/ComunicAPI
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Fix issue.
This commit is contained in:
		@@ -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;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user