mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-23 22:09:29 +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();
|
$IDs = array();
|
||||||
|
|
||||||
foreach($friends as $friend){
|
foreach($friends as $friend){
|
||||||
|
|
||||||
|
//Return only accepted friendships
|
||||||
|
if($friend->isAccepted())
|
||||||
$IDs[] = $friend->getFriendID();
|
$IDs[] = $friend->getFriendID();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $IDs;
|
return $IDs;
|
||||||
|
Loading…
Reference in New Issue
Block a user