aboutsummaryrefslogtreecommitdiffstats
path: root/include/connections.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/connections.php')
-rw-r--r--include/connections.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/connections.php b/include/connections.php
index d861bc1b3..936fc1edd 100644
--- a/include/connections.php
+++ b/include/connections.php
@@ -424,7 +424,7 @@ function contact_remove($channel_id, $abook_id) {
function remove_abook_items($channel_id, $xchan_hash) {
- $r = q("select id from item where (owner_xchan = '%s' or author_xchan = '%s') and uid = %d and item_retained = 0 and item_starred = 0",
+ $r = q("select id, parent from item where (owner_xchan = '%s' or author_xchan = '%s') and uid = %d and item_retained = 0 and item_starred = 0",
dbesc($xchan_hash),
dbesc($xchan_hash),
intval($channel_id)