X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapprovesub.php;h=0e70e3429ec995781b8989d6da9a9340d2f6d9d5;hb=8d4cdbb430c46e34cc01cdedbbf44ff160541f2b;hp=b92ad66e7ae16d65fc13fe61082dc90f3973e7f4;hpb=64df40e409812249748723b8acb0b48920ed786b;p=quix0rs-gnu-social.git diff --git a/actions/approvesub.php b/actions/approvesub.php index b92ad66e7a..0e70e3429e 100644 --- a/actions/approvesub.php +++ b/actions/approvesub.php @@ -50,7 +50,7 @@ class ApprovesubAction extends Action /** * Prepare to run */ - function prepare($args) + function prepare(array $args=array()) { parent::prepare($args); @@ -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, @@ -99,7 +97,7 @@ class ApprovesubAction extends Action * * @return void */ - function handle($args) + function handle(array $args=array()) { parent::handle($args); $cur = common_current_user();