]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/profilesection.php
Merge commit 'refs/merge-requests/11' of git://gitorious.org/statusnet/gnu-social...
[quix0rs-gnu-social.git] / lib / profilesection.php
index a9482cd634cff9783d199d0fc9957e87808de590..516599cb91dec5870d646ec4bb638b66d167453a 100644 (file)
@@ -52,7 +52,7 @@ class ProfileSection extends Section
     {
         $profiles = $this->getProfiles();
 
-        if (!$profiles) {
+        if (!$profiles->N) {
             return false;
         }
 
@@ -86,8 +86,8 @@ class ProfileSection extends Section
                                        'rel' => 'contact member',
                                        'class' => 'url'));
         $this->out->text(' ');
-        $avatar = $profile->getAvatar(AVATAR_MINI_SIZE);
-        $this->out->element('img', array('src' => (($avatar) ? $avatar->displayUrl() :  Avatar::defaultImage(AVATAR_MINI_SIZE)),
+        $avatarUrl = $profile->avatarUrl(AVATAR_MINI_SIZE);
+        $this->out->element('img', array('src' => $avatarUrl,
                                     'width' => AVATAR_MINI_SIZE,
                                     'height' => AVATAR_MINI_SIZE,
                                     'class' => 'avatar photo',