]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/profiletagbyid.php
Type-hint is array here.
[quix0rs-gnu-social.git] / actions / profiletagbyid.php
index f20f1bde4fc62cbcbcd6349dbc9e48e4bd0499a1..af27b245c879a9085005fcb127ec61ef3e6f377e 100644 (file)
@@ -40,12 +40,12 @@ class ProfiletagbyidAction extends Action
      *
      * @return boolean true
      */
-    function isReadOnly($args)
+    function isReadOnly(array $args=array())
     {
         return true;
     }
 
-    function prepare($args)
+    function prepare(array $args=array())
     {
         parent::prepare($args);
 
@@ -55,7 +55,6 @@ class ProfiletagbyidAction extends Action
         if (!$id) {
             // TRANS: Client error displayed trying to perform an action without providing an ID.
             $this->clientError(_('No ID.'));
-            return false;
         }
 
         common_debug("Peopletag id $id by user id $tagger_id");
@@ -65,7 +64,6 @@ class ProfiletagbyidAction extends Action
         if (!$this->peopletag) {
             // TRANS: Client error displayed trying to reference a non-existing list.
             $this->clientError(_('No such list.'), 404);
-            return false;
         }
 
         $user = User::getKV('id', $tagger_id);
@@ -85,7 +83,7 @@ class ProfiletagbyidAction extends Action
      *
      * @return void
      */
-    function handle($args)
+    function handle(array $args=array())
     {
         common_redirect($this->peopletag->homeUrl(), 303);
     }