]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/revokerole.php
Don't accept non-objects before testing with "instanceof".
[quix0rs-gnu-social.git] / actions / revokerole.php
index b55399598eebd81c4e982de0b1d2d7ac71e4e0a9..d3ec2ecdfa1f5f6eda4c09c1d260156e181b4b26 100644 (file)
@@ -49,7 +49,7 @@ class RevokeRoleAction extends ProfileFormAction
      *
      * @return boolean success flag
      */
-    function prepare($args)
+    function prepare(array $args=array())
     {
         if (!parent::prepare($args)) {
             return false;