Avoid a notice

This commit is contained in:
Michael 2018-10-06 18:44:42 +00:00
parent 192c6c8d4f
commit f8b74033a4
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ function fsuggest_post(App $a)
$hash = random_string(); $hash = random_string();
$note = escape_tags(trim($_POST['note'])); $note = escape_tags(trim(defaults($_POST, 'note', '')));
if ($new_contact) { if ($new_contact) {
$r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1", $r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",