don't show connections with removed xchans - as there isn't much to see

This commit is contained in:
friendica 2013-08-04 05:12:11 -07:00
parent 6e23865533
commit 1b7b53f409
2 changed files with 30 additions and 31 deletions

View File

@ -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']),
);
}
}
}

View File

@ -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");