aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/connections.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/connections.php b/include/connections.php
index 96077cd69..658fb6ee6 100644
--- a/include/connections.php
+++ b/include/connections.php
@@ -446,8 +446,13 @@ function contact_remove($channel_id, $abook_id) {
);
$r = q("delete from abconfig where chan = %d and xchan = '%s'",
- intval($channel_id),
- dbesc($abook['abook_xchan'])
+ intval($channel_id),
+ dbesc($abook['abook_xchan'])
+ );
+
+ $r = q("delete from source where src_channel_id = %d and src_xchan = '%s'",
+ intval($channel_id),
+ dbesc($abook['abook_xchan'])
);
return true;