X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffsuggest.php;h=dd698db58ed5c62972fa70b49aeac208a9daf182;hb=3359f3f5c7ecc4b6a34c4fcfc095ab4dd5fab0f1;hp=124abd464bf0ae8fae0ea3a440a3346f862b2729;hpb=2ad162f991fdd32122b029398b9ab9e8801c0462;p=friendica.git diff --git a/mod/fsuggest.php b/mod/fsuggest.php index 124abd464b..dd698db58e 100644 --- a/mod/fsuggest.php +++ b/mod/fsuggest.php @@ -61,7 +61,7 @@ function fsuggest_post(App $a) { intval($fsuggest_id), intval(local_user()) ); - Worker::add(PRIORITY_HIGH, 'notifier', 'suggest', $fsuggest_id); + Worker::add(PRIORITY_HIGH, 'Notifier', 'suggest', $fsuggest_id); } info( t('Friend suggestion sent.') . EOL); @@ -74,38 +74,44 @@ function fsuggest_post(App $a) { -function fsuggest_content(App $a) { - - require_once('include/acl_selectors.php'); +function fsuggest_content(App $a) +{ + require_once 'include/acl_selectors.php'; if (! local_user()) { - notice( t('Permission denied.') . EOL); + notice(t('Permission denied.') . EOL); return; } - if($a->argc != 2) + if ($a->argc != 2) { return; + } $contact_id = intval($a->argv[1]); - $r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1", + $r = q( + "SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($contact_id), intval(local_user()) ); if (! DBM::is_result($r)) { - notice( t('Contact not found.') . EOL); + notice(t('Contact not found.') . EOL); return; } $contact = $r[0]; $o = '