]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Profile.php
Rename dbesc to DBA::escape
[friendica.git] / src / Model / Profile.php
index c17be989402b37273ed9da8747c30564047cadea..1bd7a97027303a1e80f46f512883909516a0bb15 100644 (file)
@@ -346,7 +346,7 @@ class Profile
                                $r = q(
                                        "SELECT `url` FROM `contact` WHERE `uid` = %d AND `nurl` = '%s' AND `rel` = %d",
                                        intval($profile['uid']),
-                                       dbesc(normalise_link(self::getMyURL())),
+                                       DBA::escape(normalise_link(self::getMyURL())),
                                        intval(CONTACT_IS_FRIEND)
                                );
                        }
@@ -463,9 +463,9 @@ class Profile
                                                AND NOT `hidden` AND NOT `archive`
                                                AND `network` IN ('%s', '%s', '%s', '')",
                                        intval($profile['uid']),
-                                       dbesc(NETWORK_DFRN),
-                                       dbesc(NETWORK_DIASPORA),
-                                       dbesc(NETWORK_OSTATUS)
+                                       DBA::escape(NETWORK_DFRN),
+                                       DBA::escape(NETWORK_DIASPORA),
+                                       DBA::escape(NETWORK_OSTATUS)
                                );
                                if (DBA::isResult($r)) {
                                        $contacts = intval($r[0]['total']);