aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-05-02 23:58:51 -0700
committerzotlabs <mike@macgirvin.com>2019-05-02 23:58:51 -0700
commit319b0acdd81851340b332c10aa29d437897ccde7 (patch)
treea98d2398db20f290a10254bbe066619c85ad693a /include
parent7b4cb31a10a3ad4b9c0c671014074362fa19cb6c (diff)
downloadvolse-hubzilla-319b0acdd81851340b332c10aa29d437897ccde7.tar.gz
volse-hubzilla-319b0acdd81851340b332c10aa29d437897ccde7.tar.bz2
volse-hubzilla-319b0acdd81851340b332c10aa29d437897ccde7.zip
fix item query
Diffstat (limited to 'include')
-rw-r--r--include/connections.php2
1 files changed, 1 insertions, 1 deletions
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) {