aboutsummaryrefslogtreecommitdiffstats
path: root/mod/connections.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-04 05:12:11 -0700
committerfriendica <info@friendica.com>2013-08-04 05:12:11 -0700
commit1b7b53f4093a6a2b277f2b85b0962adbf1fa759e (patch)
treef18d325b7a1202f679437aafd15199fa4cc4efab /mod/connections.php
parent6e2386553399b2c36a380531e6e3cb898a45a5b9 (diff)
downloadvolse-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/connections.php')
-rw-r--r--mod/connections.php36
1 files changed, 17 insertions, 19 deletions
diff --git a/mod/connections.php b/mod/connections.php
index 9321676c5..2ad9342b8 100644
--- a/mod/connections.php
+++ b/mod/connections.php
@@ -624,26 +624,24 @@ function connections_content(&$a) {
if(count($r)) {
foreach($r as $rr) {
-
- $contacts[] = array(
- 'img_hover' => sprintf( t('%1$s [%2$s]'),$rr['xchan_name'],$rr['xchan_url']),
- 'edit_hover' => t('Edit contact'),
- 'photo_menu' => contact_photo_menu($rr),
- 'id' => $rr['abook_id'],
- 'alt_text' => $alt_text,
- 'dir_icon' => $dir_icon,
- 'thumb' => $rr['xchan_photo_m'],
- 'name' => $rr['xchan_name'],
- 'username' => $rr['xchan_name'],
- 'sparkle' => $sparkle,
- 'link' => z_root() . '/connections/' . $rr['abook_id'],
- 'url' => $rr['xchan_url'],
- 'network' => network_to_name($rr['network']),
- );
+ 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'),
+ 'photo_menu' => contact_photo_menu($rr),
+ 'id' => $rr['abook_id'],
+ 'alt_text' => $alt_text,
+ 'dir_icon' => $dir_icon,
+ 'thumb' => $rr['xchan_photo_m'],
+ 'name' => $rr['xchan_name'],
+ 'username' => $rr['xchan_name'],
+ 'sparkle' => $sparkle,
+ 'link' => z_root() . '/connections/' . $rr['abook_id'],
+ 'url' => $rr['xchan_url'],
+ 'network' => network_to_name($rr['network']),
+ );
+ }
}
-
-
-
}