From 20ca93191fda9f25f387e354a8ac4edd9582ded5 Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 8 Nov 2011 16:54:32 -0800 Subject: cleanup and loose ends --- include/items.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/items.php') 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)) -- cgit v1.2.3