From 319b0acdd81851340b332c10aa29d437897ccde7 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 2 May 2019 23:58:51 -0700 Subject: fix item query --- include/connections.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/connections.php b/include/connections.php index 6382250d5..533c5be39 100644 --- a/include/connections.php +++ b/include/connections.php @@ -384,7 +384,7 @@ function contact_remove($channel_id, $abook_id) { // if this isn't the parent, see if the conversation was retained if($rr['id'] != $rr['parent']) { - $w = q("select id from item where parent = %d and item_retained = 0", + $w = q("select id from item where id = %d and item_retained = 0", intval($rr['parent']) ); if($w) { -- cgit v1.2.3