- function get_channel() {
- $user = $this->user;
- $c = array('url' => common_local_url('repliesrss',
- array('nickname' =>
- $user->nickname)),
- 'title' => sprintf(_("Replies to %s"), $profile->nickname),
- 'link' => common_local_url('replies',
- array('nickname' =>
- $user->nickname)),
- 'description' => sprintf(_('Feed for replies to '), $user->nickname));
- return $c;
- }
-
- function get_image() {
- $user = $this->user;
- $profile = $user->getProfile();
- $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
- return ($avatar) ? $avatar->url : NULL;
- }
+ function get_image()
+ {
+ $user = $this->user;
+ $profile = $user->getProfile();
+ if (!$profile) {
+ return null;
+ }
+ $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
+ return ($avatar) ? $avatar->url : null;
+ }