]> git.mxchange.org Git - friendica.git/blobdiff - mod/fsuggest.php
Merge remote-tracking branch 'upstream/develop' into 1603-ostatus-completion
[friendica.git] / mod / fsuggest.php
index 26a5e980635f5f788547f62b3385c0f875702c0d..6b1cbd7533be8ca44f6e9ce19c32609cdbf74490 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-if(! function_exists('fsuggest_post')) {
+
 function fsuggest_post(&$a) {
 
        if(! local_user()) {
@@ -39,11 +39,11 @@ function fsuggest_post(&$a) {
                                VALUES ( %d, %d, '%s','%s','%s','%s','%s','%s')",
                                intval(local_user()),
                                intval($contact_id),
-                               dbesc($r[0]['name']),
-                               dbesc($r[0]['url']),
-                               dbesc($r[0]['request']),
-                               dbesc($r[0]['photo']),
-                               dbesc($hash),
+                               dbesc($r[0]['name']), 
+                               dbesc($r[0]['url']), 
+                               dbesc($r[0]['request']), 
+                               dbesc($r[0]['photo']), 
+                               dbesc($hash), 
                                dbesc(datetime_convert())
                        );
                        $r = q("SELECT `id` FROM `fsuggest` WHERE `note` = '%s' AND `uid` = %d LIMIT 1",
@@ -65,11 +65,11 @@ function fsuggest_post(&$a) {
 
        }
 
+
 }
-}
 
 
-if(! function_exists('fsuggest_content')) {
+
 function fsuggest_content(&$a) {
 
        require_once('include/acl_selectors.php');
@@ -100,7 +100,7 @@ function fsuggest_content(&$a) {
 
        $o .= '<form id="fsuggest-form" action="fsuggest/' . $contact_id . '" method="post" >';
 
-       $o .= contact_selector('suggest','suggest-select', false,
+       $o .= contact_selector('suggest','suggest-select', false, 
                array('size' => 4, 'exclude' => $contact_id, 'networks' => 'DFRN_ONLY', 'single' => true));
 
 
@@ -109,4 +109,3 @@ function fsuggest_content(&$a) {
 
        return $o;
 }
-}