]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
check for cur before message link
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 22 Sep 2008 22:56:20 +0000 (18:56 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 22 Sep 2008 22:56:20 +0000 (18:56 -0400)
darcs-hash:20080922225620-5ed1f-0dd8e76bcb8850744040e234e04b3182a0e13add.gz

actions/showstream.php

index 21d35201c8c0b6c46fa82842fc8e27711e6f8d01..2f7c2fb921818d521035442cbac64b777cf3cae4 100644 (file)
@@ -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'));
                }