]> git.mxchange.org Git - friendica.git/blobdiff - mod/fsuggest.php
missing linebreaks and a small typo
[friendica.git] / mod / fsuggest.php
index 2cd91ea57c292f2874ed57191758e752d4fe3e84..32ed63b4c20ae75ed3207ab99df74b541848b500 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 
+use Friendica\App;
 
 function fsuggest_post(App $a) {
 
@@ -29,7 +30,7 @@ function fsuggest_post(App $a) {
 
        $note = escape_tags(trim($_POST['note']));
 
-       if ($new_contact) {
+       if($new_contact) {
                $r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
                        intval($new_contact),
                        intval(local_user())
@@ -80,9 +81,8 @@ function fsuggest_content(App $a) {
                return;
        }
 
-       if ($a->argc != 2) {
+       if($a->argc != 2)
                return;
-       }
 
        $contact_id = intval($a->argv[1]);