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 76b26e468..1135b6697 100644
--- a/include/connections.php
+++ b/include/connections.php
@@ -382,7 +382,7 @@ function contact_remove($channel_id, $abook_id) {
$r = fetch_post_tags($r,true);
foreach($r as $rr) {
- $x = q("select uid from term where otype = %d and oid = %d ttype = %d limit 1",
+ $x = q("select uid from term where otype = %d and oid = %d and ttype = %d limit 1",
intval(TERM_OBJ_POST),
intval($rr['id']),
intval(TERM_FILE)