X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fallfriends.php;h=e4f067eaf7d4cd1b0aef62fcf800895eee17c41d;hb=f3529e7dbcad8af388764938230b1e864359fa83;hp=03f78e696e2c4946a112dc2aeecd694472e049e8;hpb=60a0235af0dfb0a85613fbcf96d48906179f06c4;p=friendica.git diff --git a/mod/allfriends.php b/mod/allfriends.php index 03f78e696e..e4f067eaf7 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; } @@ -60,7 +60,7 @@ function allfriends_content(&$a) { $photo_menu = contact_photo_menu ($rr); } else { - $connlnk = $a->get_baseurl() . '/follow/?url=' . $rr['url']; + $connlnk = App::get_baseurl() . '/follow/?url=' . $rr['url']; $photo_menu = array( 'profile' => array(t("View Profile"), zrl($rr['url'])), 'follow' => array(t("Connect/Follow"), $connlnk)