]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/approvesub.php
More RESTish URL (/notice/:notice/delete) for notice delete
[quix0rs-gnu-social.git] / actions / approvesub.php
index b92ad66e7ae16d65fc13fe61082dc90f3973e7f4..c9fa804412a97b4abd0669c38be051b77cc81a64 100644 (file)
@@ -58,14 +58,12 @@ class ApprovesubAction extends Action
         if (empty($cur)) {
             // TRANS: Client error displayed trying to approve group membership while not logged in.
             $this->clientError(_('Must be logged in.'), 403);
-            return false;
         }
         if ($this->arg('profile_id')) {
             $this->profile = Profile::getKV('id', $this->arg('profile_id'));
         } else {
             // TRANS: Client error displayed trying to approve subscriptionswithout specifying a profile to approve.
             $this->clientError(_('Must specify a profile.'));
-            return false;
         }
 
         $this->request = Subscription_queue::pkeyGet(array('subscriber' => $this->profile->id,