X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffsuggest.php;h=ad407d5f32a0ca80552fbe36a02e638296282d25;hb=0c9cc29a51941eb572bf16fd5489d0947d47d033;hp=29fb79cfb1394a45f2061029cd4ffa9bdbb8b770;hpb=c410c9013c062a9a4fce1f887572a1b1c951afbe;p=friendica.git diff --git a/mod/fsuggest.php b/mod/fsuggest.php index 29fb79cfb1..ad407d5f32 100644 --- a/mod/fsuggest.php +++ b/mod/fsuggest.php @@ -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); @@ -94,21 +94,18 @@ function fsuggest_content(&$a) { } $contact = $r[0]; - - - $o = '