diff --git a/actions/showstream.php b/actions/showstream.php index 21d35201c8..2f7c2fb921 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -149,7 +149,7 @@ class ShowstreamAction extends StreamAction { $user = User::staticGet('id', $profile->id); - if ($cur->id != $user->id && $cur->mutuallySubscribed($user)) { + if ($cur && $cur->id != $user->id && $cur->mutuallySubscribed($user)) { common_element('a', array('href' => common_local_url('newmessage', array('to' => $user->id))), _('Send a message')); }