]> git.mxchange.org Git - friendica.git/blobdiff - mod/match.php
Rename dbesc to DBA::escape
[friendica.git] / mod / match.php
index a79d4568005c7ee83ea230a2b99b5c22db1a9fe4..75e7403d74815b36e462ea8c207cc829ded53096 100644 (file)
@@ -2,6 +2,7 @@
 /**
  * @file mod/match.php
  */
+
 use Friendica\App;
 use Friendica\Content\Widget;
 use Friendica\Core\Config;
@@ -9,7 +10,6 @@ use Friendica\Core\L10n;
 use Friendica\Core\System;
 use Friendica\Database\DBA;
 use Friendica\Model\Contact;
-use Friendica\Model\Profile;
 use Friendica\Util\Network;
 
 require_once 'include/text.php';
@@ -79,7 +79,7 @@ function match_content(App $a)
                                $match = q(
                                        "SELECT `nurl` FROM `contact` WHERE `uid` = '%d' AND nurl='%s' LIMIT 1",
                                        intval(local_user()),
-                                       dbesc($match_nurl)
+                                       DBA::escape($match_nurl)
                                );
 
                                if (!count($match)) {