]> git.mxchange.org Git - friendica.git/blobdiff - mod/fsuggest.php
Add not null/default value for ACL in fields
[friendica.git] / mod / fsuggest.php
index 2bddf48133103510becfb1c90290c86a2c820059..d41363ad7b38d153043b2afa7484bff30fdd8370 100644 (file)
@@ -45,7 +45,7 @@ function fsuggest_post(App $a)
                return;
        }
 
-       $note = Strings::escapeHtml(trim(defaults($_POST, 'note', '')));
+       $note = Strings::escapeHtml(trim($_POST['note'] ?? ''));
 
        $fields = ['uid' => local_user(),'cid' => $contact_id, 'name' => $contact['name'],
                'url' => $contact['url'], 'request' => $contact['request'],