mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-12-25 04:58:59 +00:00
Fix issue in public friends list
This commit is contained in:
parent
8661e932a0
commit
cd81cfd8ba
@ -69,7 +69,11 @@ class friendsController{
|
||||
$IDs = array();
|
||||
|
||||
foreach($friends as $friend){
|
||||
$IDs[] = $friend->getFriendID();
|
||||
|
||||
//Return only accepted friendships
|
||||
if($friend->isAccepted())
|
||||
$IDs[] = $friend->getFriendID();
|
||||
|
||||
}
|
||||
|
||||
return $IDs;
|
||||
|
Loading…
Reference in New Issue
Block a user