Fix issue in public friends list

This commit is contained in:
Pierre 2018-03-11 09:58:49 +01:00
parent 8661e932a0
commit cd81cfd8ba

View File

@ -69,7 +69,11 @@ class friendsController{
$IDs = array(); $IDs = array();
foreach($friends as $friend){ foreach($friends as $friend){
$IDs[] = $friend->getFriendID();
//Return only accepted friendships
if($friend->isAccepted())
$IDs[] = $friend->getFriendID();
} }
return $IDs; return $IDs;