X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fsup.php;h=b871983185a5f66fff3e944ab354ff730810eea2;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=c4da9d3db6158374a9898b1b6b25fd05b26e4223;hpb=e98e443605cff0266dcf9b412641b42c82e45824;p=quix0rs-gnu-social.git diff --git a/actions/sup.php b/actions/sup.php index c4da9d3db6..b871983185 100644 --- a/actions/sup.php +++ b/actions/sup.php @@ -22,7 +22,7 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } // @todo FIXME: documentation needed. class SupAction extends Action { - function handle($args) + function handle(array $args=array()) { parent::handle($args); @@ -61,8 +61,8 @@ class SupAction extends Action { $notice = new Notice(); - # XXX: cache this. Depends on how big this protocol becomes; - # Re-doing this query every 15 seconds isn't the end of the world. + // XXX: cache this. Depends on how big this protocol becomes; + // Re-doing this query every 15 seconds isn't the end of the world. $divider = common_sql_date(time() - $seconds); @@ -84,7 +84,7 @@ class SupAction extends Action return $updates; } - function isReadOnly($args) + function isReadOnly(array $args=array()) { return true; }