summaryrefslogtreecommitdiff
path: root/actions/allrss.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/allrss.php')
-rw-r--r--actions/allrss.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/actions/allrss.php b/actions/allrss.php
index 9cbfe8dc8..e49ac5540 100644
--- a/actions/allrss.php
+++ b/actions/allrss.php
@@ -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;
}