]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/allrss.php
removed Profile_block::get, changed to use pkeyGet
[quix0rs-gnu-social.git] / actions / allrss.php
index 088d04037f3acdb221dffd3efed697506f717d78..e49ac55401435d9cd0d4d7e262e0eaac9e58adc2 100644 (file)
@@ -43,7 +43,7 @@ class AllrssAction extends Rss10Action {
 
                $user = $this->user;
                
-               list($cnt, $notice) = $user->noticesWithFriends(0, $limit);
+               $notice = $user->noticesWithFriends(0, $limit);
                                                                                        
                while ($notice->fetch()) {
                        $notices[] = clone($notice);
@@ -68,6 +68,9 @@ class AllrssAction extends Rss10Action {
        function get_image() {
                $user = $this->user;
                $profile = $user->getProfile();
+               if (!$profile) {
+                       return NULL;
+               }
                $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
                return ($avatar) ? $avatar->url : NULL;
        }