From f8b74033a4f990e421814ea5bf8b443104e61feb Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 6 Oct 2018 18:44:42 +0000 Subject: [PATCH] Avoid a notice --- mod/fsuggest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/fsuggest.php b/mod/fsuggest.php index 8fc0f07dee..35710bb338 100644 --- a/mod/fsuggest.php +++ b/mod/fsuggest.php @@ -36,7 +36,7 @@ function fsuggest_post(App $a) $hash = random_string(); - $note = escape_tags(trim($_POST['note'])); + $note = escape_tags(trim(defaults($_POST, 'note', ''))); if ($new_contact) { $r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",