]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
bad boolean logic for impossible stream
authorEvan Prodromou <evan@status.net>
Wed, 21 Mar 2012 20:26:33 +0000 (16:26 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 21 Mar 2012 20:26:33 +0000 (16:26 -0400)
lib/profilenoticestream.php

index af59b0cc99b886bf6e0c501533cddb2b2fe7efd1..cd89769ec27a7769926fb0e8d9f5db420f70a5c4 100644 (file)
@@ -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;
         }