summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-22 18:56:20 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-22 18:56:20 -0400
commitc060a84c5b0356ba72118482615e97c7fcd58c6e (patch)
tree5d1a9a8039ac93508747624f25c439c873db2ed6 /actions
parentac60342e8924c5847b76139ac740f90520e92be9 (diff)
check for cur before message link
darcs-hash:20080922225620-5ed1f-0dd8e76bcb8850744040e234e04b3182a0e13add.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/showstream.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index 21d35201c..2f7c2fb92 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'));
}