]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
&$supported in CommandSupportedAPI event is boolean
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 7 Nov 2014 15:13:45 +0000 (16:13 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 7 Nov 2014 15:13:45 +0000 (16:13 +0100)
not array as we specified here

plugins/Favorite/FavoritePlugin.php

index 9f2618d5821cceaa0104ba933426f55466fb1801..d06153965eb087967c263e41d49c661250ec4760 100644 (file)
@@ -416,7 +416,7 @@ class FavoritePlugin extends ActivityHandlerPlugin
     /**
      * Are we allowed to perform a certain command over the API?
      */
-    public function onCommandSupportedAPI(Command $cmd, array &$supported)
+    public function onCommandSupportedAPI(Command $cmd, &$supported)
     {
         $supported = $supported || $cmd instanceof FavCommand;
     }