]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apioauthaccesstoken.php
Added missing type-hint for EndPublicGroupNav (it is Menu).
[quix0rs-gnu-social.git] / actions / apioauthaccesstoken.php
index f3d64de2251935f1b952fde109420c05d6292690..20802466073f2cfc275327d4236d4fca5d0a2c00 100644 (file)
@@ -52,11 +52,11 @@ class ApiOAuthAccessTokenAction extends ApiOAuthAction
      *
      * @return void
      */
-    function handle($args)
+    function handle(array $args=array())
     {
         parent::handle($args);
 
-        $datastore   = new ApiGNUSocialOAuthDataStore();
+        $datastore   = new ApiGNUsocialOAuthDataStore();
         $server      = new OAuthServer($datastore);
         $hmac_method = new OAuthSignatureMethod_HMAC_SHA1();
 
@@ -80,7 +80,6 @@ class ApiOAuthAccessTokenAction extends ApiOAuthAction
             common_debug(var_export($req, true));
             $code = $e->getCode();
             $this->clientError($e->getMessage(), empty($code) ? 401 : $code, 'text');
-            return;
         }
 
         if (empty($atok)) {