fix sql error

(cherry picked from commit ec3a066e4e)
This commit is contained in:
Mario Vavti 2018-07-26 07:32:52 +00:00 committed by Mario
parent 52ad5b7df5
commit 7062a7ce66

View File

@ -382,7 +382,7 @@ function contact_remove($channel_id, $abook_id) {
$r = fetch_post_tags($r,true); $r = fetch_post_tags($r,true);
foreach($r as $rr) { 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(TERM_OBJ_POST),
intval($rr['id']), intval($rr['id']),
intval(TERM_FILE) intval(TERM_FILE)