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