]> git.mxchange.org Git - friendica.git/blobdiff - mod/suggest.php
Merge branch 'develop' into rewrites/dbm_is_result
[friendica.git] / mod / suggest.php
index 73f5ffe4b218722247617cf42ab9dcbd9590b6c5..5af337ae1b44116c717b884b22a9e9f1e93c63ad 100644 (file)
@@ -4,13 +4,14 @@ 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'])) {
+       if (x($_GET,'ignore') && intval($_GET['ignore'])) {
                // Check if we should do HTML-based delete confirmation
-               if($_REQUEST['confirm']) {
+               if ($_REQUEST['confirm']) {
                        // <form> can't take arguments in its "action" parameter
                        // so add any arguments as hidden inputs
                        $query = explode_querystring($a->query_string);
@@ -35,7 +36,7 @@ function suggest_init(&$a) {
                        return;
                }
                // Now check how the user responded to the confirmation query
-               if(!$_REQUEST['canceled']) {
+               if (!$_REQUEST['canceled']) {
                        q("INSERT INTO `gcign` ( `uid`, `gcid` ) VALUES ( %d, %d ) ",
                                intval(local_user()),
                                intval($_GET['ignore'])
@@ -49,12 +50,12 @@ function suggest_init(&$a) {
 
 
 
-function suggest_content(&$a) {
+function suggest_content(App &$a) {
 
        require_once("mod/proxy.php");
 
        $o = '';
-       if(! local_user()) {
+       if (! local_user()) {
                notice( t('Permission denied.') . EOL);
                return;
        }