aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-07-26 07:32:52 +0000
committerMario <mario@mariovavti.com>2018-07-26 09:34:48 +0200
commit7062a7ce6615b29582b44bbc484f32adf74aa771 (patch)
treec7b913c50ed5706801855240e8722fd756bed405
parent52ad5b7df5cb57dafae974180690195c7799fad0 (diff)
downloadvolse-hubzilla-7062a7ce6615b29582b44bbc484f32adf74aa771.tar.gz
volse-hubzilla-7062a7ce6615b29582b44bbc484f32adf74aa771.tar.bz2
volse-hubzilla-7062a7ce6615b29582b44bbc484f32adf74aa771.zip
fix sql error
(cherry picked from commit ec3a066e4e94ad7c72d1d07371081318a4d5e9ab)
-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)