From: Michael Date: Sat, 6 Oct 2018 18:44:42 +0000 (+0000) Subject: Avoid a notice X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f8b74033a4f990e421814ea5bf8b443104e61feb;p=friendica.git Avoid a notice --- 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",