X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fallfriends.php;h=240aa524be308ea605076fcb250a9da693a7dd42;hb=378cbd90270516be1701adc5bfe64008ef0c17d9;hp=498b9d7dbf1cf62b0b61eff85aec17e8575ace5b;hpb=8feeb8200db2e2cb8a02d971ea549bf9d2ea623f;p=friendica.git diff --git a/mod/allfriends.php b/mod/allfriends.php index 498b9d7dbf..240aa524be 100644 --- a/mod/allfriends.php +++ b/mod/allfriends.php @@ -39,7 +39,7 @@ function allfriends_content(&$a) { $r = all_friends(local_user(), $cid, $a->pager['start'], $a->pager['itemspage']); - if(! count($r)) { + if(! dbm::is_result($r)) { $o .= t('No friends to display.'); return $o; } @@ -76,7 +76,7 @@ function allfriends_content(&$a) { 'details' => $contact_details['location'], 'tags' => $contact_details['keywords'], 'about' => $contact_details['about'], - 'account_type' => (($contact_details['community']) ? t('Forum') : ''), + 'account_type' => account_type($contact_details), 'network' => network_to_name($contact_details['network'], $contact_details['url']), 'photo_menu' => $photo_menu, 'conntxt' => t('Connect'),