aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-11-08 16:54:32 -0800
committerFriendika <info@friendika.com>2011-11-08 16:54:32 -0800
commit20ca93191fda9f25f387e354a8ac4edd9582ded5 (patch)
treebc3eca4d41bdf611041fb8a953ebdeda58c5634b /include/items.php
parent02a1fdacd7fb32d40b30ea52c07c07c7c414ee76 (diff)
downloadvolse-hubzilla-20ca93191fda9f25f387e354a8ac4edd9582ded5.tar.gz
volse-hubzilla-20ca93191fda9f25f387e354a8ac4edd9582ded5.tar.bz2
volse-hubzilla-20ca93191fda9f25f387e354a8ac4edd9582ded5.zip
cleanup and loose ends
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 2af2b5f55..35db71946 100644
--- a/include/items.php
+++ b/include/items.php
@@ -1671,9 +1671,9 @@ function local_delivery($importer,$data) {
// Does our member already have a friend matching this description?
- $r = q("SELECT * FROM `contact` WHERE `name` = '%s' AND `url` = '%s' AND `uid` = %d LIMIT 1",
+ $r = q("SELECT * FROM `contact` WHERE `name` = '%s' AND `nurl` = '%s' AND `uid` = %d LIMIT 1",
dbesc($fsugg['name']),
- dbesc($fsugg['url']),
+ dbesc(normalise_link($fsugg['url'])),
intval($fsugg['uid'])
);
if(count($r))