diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-10-19 16:50:53 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-10-19 16:50:53 -0700 |
commit | bab73edcefe5ee525a879c6be7e3a2db7c565f3d (patch) | |
tree | 3c563719fd706ad9a0250391bd367b55a4defa80 /include | |
parent | 42d26f01d617e4eb23f956609a547bfd2d77bac0 (diff) | |
download | volse-hubzilla-bab73edcefe5ee525a879c6be7e3a2db7c565f3d.tar.gz volse-hubzilla-bab73edcefe5ee525a879c6be7e3a2db7c565f3d.tar.bz2 volse-hubzilla-bab73edcefe5ee525a879c6be7e3a2db7c565f3d.zip |
extened the earlier fix
Diffstat (limited to 'include')
-rw-r--r-- | include/text.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php index 25743e872..d395a2523 100644 --- a/include/text.php +++ b/include/text.php @@ -1967,13 +1967,13 @@ function xchan_query(&$items,$abook = true,$effective_uid = 0) { if(count($arr)) { if($abook) { $chans = q("select * from xchan left join hubloc on hubloc_hash = xchan_hash left join abook on abook_xchan = xchan_hash and abook_channel = %d - where xchan_hash in (" . implode(',', $arr) . ") and hubloc_primary = 1", + where xchan_hash in (" . protect_sprintf(implode(',', $arr)) . ") and hubloc_primary = 1", intval($item['uid']) ); } else { $chans = q("select xchan.*,hubloc.* from xchan left join hubloc on hubloc_hash = xchan_hash - where xchan_hash in (" . implode(',', $arr) . ") and hubloc_primary = 1"); + where xchan_hash in (" . protect_sprintf(implode(',', $arr)) . ") and hubloc_primary = 1"); } $xchans = q("select * from xchan where xchan_hash in (" . protect_sprintf(implode(',',$arr)) . ") and xchan_network in ('rss','unknown')"); if(! $chans) |