X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fsuggest.php;h=7f1fe3386c139f297244f88f0ea45f2d23aba310;hb=458981f75cff2427976c9abc787eadf8e9e6267f;hp=5e8dcc5fb7325ec3cd66f2041752a62b438b2164;hpb=30c1cc0e8cec5438fd8fe36bd4ea00991dc01934;p=friendica.git diff --git a/mod/suggest.php b/mod/suggest.php index 5e8dcc5fb7..7f1fe3386c 100644 --- a/mod/suggest.php +++ b/mod/suggest.php @@ -2,22 +2,25 @@ /** * @file mod/suggest.php */ + use Friendica\App; use Friendica\Content\ContactSelector; use Friendica\Content\Widget; use Friendica\Core\L10n; +use Friendica\Core\Renderer; use Friendica\Core\System; -use Friendica\Database\DBM; +use Friendica\Database\DBA; use Friendica\Model\Contact; use Friendica\Model\GContact; -use Friendica\Model\Profile; +use Friendica\Util\Proxy as ProxyUtils; -function suggest_init(App $a) { +function suggest_init(App $a) +{ if (! local_user()) { return; } - if (x($_GET,'ignore') && intval($_GET['ignore'])) { + if (!empty($_GET['ignore'])) { // Check if we should do HTML-based delete confirmation if ($_REQUEST['confirm']) { //