ensure we update the correct abook record
This commit is contained in:
parent
5bf3ddfcf6
commit
9bfff0bca1
@ -213,11 +213,14 @@ function zot_refresh($them,$channel = null) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$r = q("update abook set abook_their_perms = %d
|
$r = q("update abook set abook_their_perms = %d
|
||||||
where abook_xchan = '%s' and abook_channel = %d limit 1",
|
where abook_xchan = '%s' and abook_channel = %d
|
||||||
|
and not (abook_flags & %d) limit 1",
|
||||||
intval($their_perms),
|
intval($their_perms),
|
||||||
dbesc($channel['channel_hash']),
|
dbesc($x['hash']),
|
||||||
intval($channel['channel_id'])
|
intval($channel['channel_id']),
|
||||||
|
intval(ABOOK_FLAG_SELF)
|
||||||
);
|
);
|
||||||
|
|
||||||
if(! $r)
|
if(! $r)
|
||||||
logger('abook update failed');
|
logger('abook update failed');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user