aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-07-26 09:32:52 +0200
committerMario Vavti <mario@mariovavti.com>2018-07-26 09:32:52 +0200
commitec3a066e4e94ad7c72d1d07371081318a4d5e9ab (patch)
treecf895d0dc25a751657a095d9363a302a60a2951e
parentd39942902c1404837e6d767379be16595046ab2f (diff)
downloadvolse-hubzilla-ec3a066e4e94ad7c72d1d07371081318a4d5e9ab.tar.gz
volse-hubzilla-ec3a066e4e94ad7c72d1d07371081318a4d5e9ab.tar.bz2
volse-hubzilla-ec3a066e4e94ad7c72d1d07371081318a4d5e9ab.zip
fix sql error
-rw-r--r--include/connections.php2
1 files changed, 1 insertions, 1 deletions
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)