]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/allrss.php
notice_inbox.id -> notice_inbox.notice_id
[quix0rs-gnu-social.git] / actions / allrss.php
index 9cbfe8dc8f2c58b5d4829bc8b7433cc039c8f891..e49ac55401435d9cd0d4d7e262e0eaac9e58adc2 100644 (file)
@@ -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;
        }