]> git.mxchange.org Git - friendica.git/commitdiff
Avoid a notice
authorMichael <heluecht@pirati.ca>
Sat, 6 Oct 2018 18:44:42 +0000 (18:44 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 6 Oct 2018 18:44:42 +0000 (18:44 +0000)
mod/fsuggest.php

index 8fc0f07deef7b8b6becee9cd7f2d2a849c6cfbf7..35710bb338d0139717ed133228d3bcaf3bd53222 100644 (file)
@@ -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",