From c060a84c5b0356ba72118482615e97c7fcd58c6e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 22 Sep 2008 18:56:20 -0400 Subject: [PATCH] check for cur before message link darcs-hash:20080922225620-5ed1f-0dd8e76bcb8850744040e234e04b3182a0e13add.gz --- actions/showstream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')); } -- 2.39.5