]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Contact.php
parameters now are having a default value and are optional
[friendica.git] / src / Module / Contact.php
index 2c5428e0b5c90fc9be2f1c2a6b2347190d3f49c3..ded5ffbe2343ec2e15161e1425b9263aca27241a 100644 (file)
@@ -75,7 +75,7 @@ class Contact extends BaseModule
                $a->internalRedirect('contact');
        }
 
-       public static function post($parameters)
+       public static function post(array $parameters = [])
        {
                $a = self::getApp();
 
@@ -240,7 +240,7 @@ class Contact extends BaseModule
                Model\Contact::remove($orig_record['id']);
        }
 
-       public static function content($update = 0)
+       public static function content(array $parameters = [], $update = 0)
        {
                if (!local_user()) {
                        return Login::form($_SERVER['REQUEST_URI']);