X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fsuggest.php;h=dd24fc0a2a3a01a120557f7bf659d638c30440cf;hb=9259feec6f4b0a24c15f971a3dc8fa54f4f08141;hp=7a86d53a1dbccd533d2f505a24cd089c3dc70c85;hpb=7d23149a61f75923b2c71a288a722ee219f5e6ba;p=friendica.git diff --git a/mod/suggest.php b/mod/suggest.php old mode 100755 new mode 100644 index 7a86d53a1d..dd24fc0a2a --- a/mod/suggest.php +++ b/mod/suggest.php @@ -3,66 +3,117 @@ require_once('include/socgraph.php'); require_once('include/contact_widgets.php'); - -function suggest_init(&$a) { - if(! local_user()) +function suggest_init(App $a) { + if (! local_user()) { return; + } - if(x($_GET,'ignore') && intval($_GET['ignore'])) { - q("insert into gcign ( uid, gcid ) values ( %d, %d ) ", - intval(local_user()), - intval($_GET['ignore']) - ); + if (x($_GET,'ignore') && intval($_GET['ignore'])) { + // Check if we should do HTML-based delete confirmation + if ($_REQUEST['confirm']) { + //