check for cur before message link
darcs-hash:20080922225620-5ed1f-0dd8e76bcb8850744040e234e04b3182a0e13add.gz
This commit is contained in:
parent
ac60342e89
commit
c060a84c5b
|
@ -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'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user