]> git.mxchange.org Git - friendica.git/blobdiff - mod/fsuggest.php
Remove network exception in handle_tag
[friendica.git] / 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",