]> git.mxchange.org Git - friendica.git/blobdiff - mod/suggest.php
Added doc for route_collection hook
[friendica.git] / mod / suggest.php
index ed9f6e0f2191ed8d40ca36ce725b5ce705ca2ec8..bca2694d37360ebb9e7055114d91df6995eeca61 100644 (file)
@@ -20,7 +20,7 @@ function suggest_init(App $a)
                return;
        }
 
-       if (x($_GET,'ignore') && intval($_GET['ignore'])) {
+       if (!empty($_GET['ignore'])) {
                // Check if we should do HTML-based delete confirmation
                if ($_REQUEST['confirm']) {
                        // <form> can't take arguments in its "action" parameter
@@ -77,6 +77,7 @@ function suggest_content(App $a)
        }
 
        $id = 0;
+       $entries = [];
 
        foreach ($r as $rr) {