]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/DomainStatusNetwork/actions/globalrecover.php
Various obvious bug fixes and better PHP 7 support
[quix0rs-gnu-social.git] / plugins / DomainStatusNetwork / actions / globalrecover.php
index 9b688cbe70c587f109e2cf56a16b513606dc2623..cc45782e12dc560c83f87f4d022fe2ed65846ba5 100644 (file)
@@ -50,28 +50,28 @@ class GlobalrecoverAction extends GlobalApiAction
     /**
      * For initializing members of the class.
      *
-     * @param array $argarray misc. arguments
+     * @param array $args misc. arguments
      *
      * @return boolean true
+     * @throws ClientException
      */
 
-    function prepare($argarray)
+    function prepare(array $args = array())
     {
-        parent::prepare($argarray);
+        parent::prepare($args);
         return true;
     }
 
     /**
      * Handler method
      *
-     * @param array $argarray is ignored since it's now passed in in prepare()
-     *
      * @return void
      */
 
-    function handle($argarray=null)
+    function handle()
     {
         try {
+            // FIXME: $email isn't defined
             DomainStatusNetworkPlugin::recoverPassword($email);
             $this->showSuccess();
         } catch (ClientException $ce) {