]> git.mxchange.org Git - friendica.git/blobdiff - mod/fsuggest.php
Added response active support to smoothly
[friendica.git] / mod / fsuggest.php
index 5044be72de48c05a245cded1974b091a2d70775c..ad407d5f32a0ca80552fbe36a02e638296282d25 100644 (file)
@@ -52,12 +52,12 @@ function fsuggest_post(&$a) {
                        );
                        if(count($r)) {
                                $fsuggest_id = $r[0]['id'];
-                               q("UPDATE `fsuggest` SET `note` = '%s' WHERE `id` = %d AND `uid` = %d LIMIT 1",
+                               q("UPDATE `fsuggest` SET `note` = '%s' WHERE `id` = %d AND `uid` = %d",
                                        dbesc($note),
                                        intval($fsuggest_id),
                                        intval(local_user())
                                );
-                               proc_run('php', 'include/notifier.php', 'suggest' , $fsuggest_id);
+                               proc_run(PRIORITY_HIGH, 'include/notifier.php', 'suggest', $fsuggest_id);
                        }
 
                        info( t('Friend suggestion sent.') . EOL);
@@ -104,8 +104,8 @@ function fsuggest_content(&$a) {
                array('size' => 4, 'exclude' => $contact_id, 'networks' => 'DFRN_ONLY', 'single' => true));
 
 
-       $o .= '<input id="fsuggest-submit" type="submit" name="submit" value="' . t('Submit') . '" />';
+       $o .= '<div id="fsuggest-submit-wrapper"><input id="fsuggest-submit" type="submit" name="submit" value="' . t('Submit') . '" /></div>';
        $o .= '</form>';
 
        return $o;
-}
\ No newline at end of file
+}