From 290cdf81d6c21496fc128ba5f8c42cb16d8b0eaf Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Mon, 5 Aug 2013 17:29:18 +0100 Subject: Issue #88 --- include/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/Contact.php b/include/Contact.php index 7e6c65ac1..b9ad1e4cb 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -317,7 +317,7 @@ function contact_remove($channel_id, $abook_id) { intval($channel_id) ); - $r = q("delete from mail where ( from_xchan = '%s' or to_xchan = '%s' ) and uid = %d ", + $r = q("delete from mail where ( from_xchan = '%s' or to_xchan = '%s' ) and channel_id = %d ", dbesc($abook['abook_xchan']), dbesc($abook['abook_xchan']), intval($channel_id) -- cgit v1.2.3