]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Poll/actions/newpoll.php
Improved type-hint for following methods:
[quix0rs-gnu-social.git] / plugins / Poll / actions / newpoll.php
index 071778aaa2109486618b515a3ce8d4b091a20a47..e313bef5487e75b720d5c98d42206176dee1a15e 100644 (file)
@@ -217,7 +217,7 @@ class NewPollAction extends Action
      *
      * @return boolean is read only action?
      */
-    function isReadOnly($args)
+    function isReadOnly(array $args=array())
     {
         if ($_SERVER['REQUEST_METHOD'] == 'GET' ||
             $_SERVER['REQUEST_METHOD'] == 'HEAD') {