|
|
@@ -2101,8 +2101,8 @@ class BxBaseModProfileModule extends BxBaseModGeneralModule implements iBxDolCon
|
|
|
|
|
|
if(getParam('sys_api_conn_in_prof_units') == 'on' && ($oProfile = BxDolProfile::getInstanceByContentAndType($aData[$CNF['FIELD_ID']], $sModule)) !== false) {
|
|
|
$iProfileId = $oProfile->id();
|
|
|
-
|
|
|
- if(($oConnection = BxDolConnection::getObjectInstance('sys_profiles_friends')) !== false) {
|
|
|
+ $aResult['title'] = $oProfile->getDisplayName();
|
|
|
+ if(($oConnection = BxDolConnection::getObjectInstance('sys_profiles_friends')) !== false && isset($CNF['URI_VIEW_FRIENDS'])) {
|
|
|
$aResult['friends_count'] = $oConnection->getConnectedContentCount($iProfileId, true);
|
|
|
$aResult['friends_list'] = $oConnection->getConnectedListAPI($iProfileId, true, BX_CONNECTIONS_CONTENT_TYPE_CONTENT);
|
|
|
if(isLogged()) {
|