]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Contact/Profile.php
Merge remote-tracking branch 'upstream/2021.12-rc' into api-fixes
[friendica.git] / src / Module / Contact / Profile.php
index fb67eb04c1874f5eacc01f06031905cf7d9dea3b..88f927c40f6c7d9087de0d355b06e364fad35287 100644 (file)
@@ -71,7 +71,7 @@ class Profile extends BaseModule
                $this->config            = $config;
        }
 
-       protected function post(array $request = [], array $post = [])
+       protected function post(array $request = [])
        {
                if (!local_user()) {
                        return;
@@ -157,10 +157,10 @@ class Profile extends BaseModule
                        $this->baseUrl->redirect('profile/' . $contact['nick'] . '/profile');
                }
 
-               if (isset($parameters['action'])) {
+               if (isset($this->parameters['action'])) {
                        self::checkFormSecurityTokenRedirectOnError('contact/' . $contact['id'], 'contact_action', 't');
 
-                       $cmd = $parameters['action'];
+                       $cmd = $this->parameters['action'];
                        if ($cmd === 'update' && $localRelationship->rel !== Contact::NOTHING) {
                                Module\Contact::updateContactFromPoll($contact['id']);
                        }