From 7062a7ce6615b29582b44bbc484f32adf74aa771 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 26 Jul 2018 07:32:52 +0000 Subject: fix sql error (cherry picked from commit ec3a066e4e94ad7c72d1d07371081318a4d5e9ab) --- include/connections.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3