summaryrefslogtreecommitdiff
path: root/actions/showstream.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/showstream.php')
-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'));
}