From ec3a066e4e94ad7c72d1d07371081318a4d5e9ab Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 26 Jul 2018 09:32:52 +0200 Subject: fix sql error --- include/connections.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/connections.php b/include/connections.php index 807d07220..129bcdc8d 100644 --- a/include/connections.php +++ b/include/connections.php @@ -380,7 +380,7 @@ function contact_remove($channel_id, $abook_id) { ); if($r) { 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