]> git.mxchange.org Git - friendica.git/blobdiff - mod/nogroup.php
Cleanup for #3010 - added spaces, thanks to @annando .
[friendica.git] / mod / nogroup.php
index 9f6e9784331851b702434245f24256313612d6e4..0a014c067668daf5c2a40c34b79bec944fae3137 100644 (file)
@@ -28,25 +28,25 @@ function nogroup_content(&$a) {
 
        require_once('include/Contact.php');
        $r = contacts_not_grouped(local_user());
-       if(count($r)) {
+       if (dbm::is_result($r)) {
                $a->set_pager_total($r[0]['total']);
        }
        $r = contacts_not_grouped(local_user(),$a->pager['start'],$a->pager['itemspage']);
-       if(count($r)) {
+       if (dbm::is_result($r)) {
                foreach($r as $rr) {
 
-                       $contact_details = get_contact_details_by_url($rr['url'], local_user());
+                       $contact_details = get_contact_details_by_url($rr['url'], local_user(), $rr);
 
                        $contacts[] = array(
-                               'img_hover' => sprintf( t('Visit %s\'s profile [%s]'),$rr['name'],$rr['url']),
+                               'img_hover' => sprintf(t('Visit %s\'s profile [%s]'), $contact_details['name'], $rr['url']),
                                'edit_hover' => t('Edit contact'),
                                'photo_menu' => contact_photo_menu($rr),
                                'id' => $rr['id'],
                                'alt_text' => $alt_text,
                                'dir_icon' => $dir_icon,
-                               'thumb' => $rr['thumb'],
-                               'name' => $rr['name'],
-                               'username' => $rr['name'],
+                               'thumb' => proxy_url($contact_details['thumb'], false, PROXY_SIZE_THUMB),
+                               'name' => $contact_details['name'],
+                               'username' => $contact_details['name'],
                                'details'       => $contact_details['location'],
                                'tags'          => $contact_details['keywords'],
                                'about'         => $contact_details['about'],