Replace deprecated defaults() calls by a combination of ?? and ?: operators in mod/
This commit is contained in:
parent
8998926e5b
commit
2db6171641
32 changed files with 186 additions and 189 deletions
|
@ -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'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue