don't show connections with removed xchans - as there isn't much to see
This commit is contained in:
parent
6e23865533
commit
1b7b53f409
@ -624,7 +624,7 @@ function connections_content(&$a) {
|
||||
if(count($r)) {
|
||||
|
||||
foreach($r as $rr) {
|
||||
|
||||
if($rr['xchan_url']) {
|
||||
$contacts[] = array(
|
||||
'img_hover' => sprintf( t('%1$s [%2$s]'),$rr['xchan_name'],$rr['xchan_url']),
|
||||
'edit_hover' => t('Edit contact'),
|
||||
@ -641,9 +641,7 @@ function connections_content(&$a) {
|
||||
'network' => network_to_name($rr['network']),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -63,7 +63,7 @@ function viewconnections_content(&$a) {
|
||||
foreach($r as $rr) {
|
||||
|
||||
$url = zid($rr['xchan_url']);
|
||||
|
||||
if($url) {
|
||||
$contacts[] = array(
|
||||
'id' => $rr['abook_id'],
|
||||
'img_hover' => sprintf( t('Visit %s\'s profile [%s]'), $rr['xchan_name'], $rr['xchan_url']),
|
||||
@ -76,6 +76,7 @@ function viewconnections_content(&$a) {
|
||||
'network' => '',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$tpl = get_markup_template("viewcontact_template.tpl");
|
||||
|
Reference in New Issue
Block a user