sql error

This commit is contained in:
friendica 2014-06-25 20:32:24 -07:00
parent 893c9419f4
commit fc7e782ba5

View File

@ -117,7 +117,7 @@ function group_content(&$a) {
check_form_security_token_ForbiddenOnErr('group_member_change', 't'); check_form_security_token_ForbiddenOnErr('group_member_change', 't');
$r = q("SELECT abook_xchan from abook where abook_xchan = '%s' and abook_channel = %d and not (xchan_flags & %d) and not (abook_flags & %d) and not (abook_flags & %d) limit 1", $r = q("SELECT abook_xchan from abook left join xchan on abook_xchan = xchan_hash where abook_xchan = '%s' and abook_channel = %d and not (xchan_flags & %d) and not (abook_flags & %d) and not (abook_flags & %d) limit 1",
dbesc(argv(2)), dbesc(argv(2)),
intval(local_user()), intval(local_user()),
intval(XCHAN_FLAGS_DELETED), intval(XCHAN_FLAGS_DELETED),