diff --git a/lib/profilenoticestream.php b/lib/profilenoticestream.php index af59b0cc99..cd89769ec2 100644 --- a/lib/profilenoticestream.php +++ b/lib/profilenoticestream.php @@ -87,7 +87,7 @@ class ProfileNoticeStream extends ScopingNoticeStream // If it's a private stream, and no user or not a subscriber if (!empty($user) && $user->private_stream && - empty($this->userProfile) || !$this->userProfile->isSubscribed($this->streamProfile)) { + (empty($this->userProfile) || !$this->userProfile->isSubscribed($this->streamProfile))) { return true; }