diff options
Diffstat (limited to 'actions/userrss.php')
-rw-r--r-- | actions/userrss.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actions/userrss.php b/actions/userrss.php index 2ae45dc9c..e60851915 100644 --- a/actions/userrss.php +++ b/actions/userrss.php @@ -74,6 +74,11 @@ class UserrssAction extends Rss10Action { function get_image() { $user = $this->user; $profile = $user->getProfile(); + if (!$profile) { + common_log_db_error($user, 'SELECT', __FILE__); + $this->server_error(_('User without matching profile')); + return NULL; + } $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE); return ($avatar) ? $avatar->url : NULL; } |