X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fatompubshowmembership.php;h=16196917698ac5c8e2706929477329dab0de6064;hb=4d17d9533552ea620b83109c550e250a5c236291;hp=1e9d66c56b310990566db4f37bcfce240da71f89;hpb=c7df5594d07867b54a1e698dee35602ad0dabbd2;p=quix0rs-gnu-social.git diff --git a/actions/atompubshowmembership.php b/actions/atompubshowmembership.php index 1e9d66c56b..1619691769 100644 --- a/actions/atompubshowmembership.php +++ b/actions/atompubshowmembership.php @@ -67,7 +67,7 @@ class AtompubshowmembershipAction extends AtompubAction $this->_membership = Group_member::pkeyGet($kv); - if (!$this->_profile->isMembmer($this->_group)) { + if (!$this->_membership instanceof Group_member) { // TRANS: Client exception thrown when trying to show membership of a non-subscribed group throw new ClientException(_('Not a member.'), 404); }