diff options
author | friendica <info@friendica.com> | 2013-08-04 05:12:11 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-08-04 05:12:11 -0700 |
commit | 1b7b53f4093a6a2b277f2b85b0962adbf1fa759e (patch) | |
tree | f18d325b7a1202f679437aafd15199fa4cc4efab /mod/viewconnections.php | |
parent | 6e2386553399b2c36a380531e6e3cb898a45a5b9 (diff) | |
download | volse-hubzilla-1b7b53f4093a6a2b277f2b85b0962adbf1fa759e.tar.gz volse-hubzilla-1b7b53f4093a6a2b277f2b85b0962adbf1fa759e.tar.bz2 volse-hubzilla-1b7b53f4093a6a2b277f2b85b0962adbf1fa759e.zip |
don't show connections with removed xchans - as there isn't much to see
Diffstat (limited to 'mod/viewconnections.php')
-rw-r--r-- | mod/viewconnections.php | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/mod/viewconnections.php b/mod/viewconnections.php index a08723ba2..9c85d63b6 100644 --- a/mod/viewconnections.php +++ b/mod/viewconnections.php @@ -63,18 +63,19 @@ function viewconnections_content(&$a) { foreach($r as $rr) { $url = zid($rr['xchan_url']); - - $contacts[] = array( - 'id' => $rr['abook_id'], - 'img_hover' => sprintf( t('Visit %s\'s profile [%s]'), $rr['xchan_name'], $rr['xchan_url']), - 'thumb' => $rr['xchan_photo_m'], - 'name' => substr($rr['xchan_name'],0,20), - 'username' => $rr['xchan_addr'], - 'link' => $url, - 'sparkle' => '', - 'itemurl' => $rr['url'], - 'network' => '', - ); + if($url) { + $contacts[] = array( + 'id' => $rr['abook_id'], + 'img_hover' => sprintf( t('Visit %s\'s profile [%s]'), $rr['xchan_name'], $rr['xchan_url']), + 'thumb' => $rr['xchan_photo_m'], + 'name' => substr($rr['xchan_name'],0,20), + 'username' => $rr['xchan_addr'], + 'link' => $url, + 'sparkle' => '', + 'itemurl' => $rr['url'], + 'network' => '', + ); + } } |