bug in commentable - ambiguous abook entry
This commit is contained in:
parent
e25a387887
commit
3dcf9a1df7
@ -1557,7 +1557,9 @@ function xchan_query(&$items,$abook = true) {
|
||||
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
|
||||
where xchan_hash in (" . implode(',', $arr) . ") and ( hubloc_flags & " . intval(HUBLOC_FLAGS_PRIMARY) . " )");
|
||||
where abook_channel = %d and xchan_hash in (" . implode(',', $arr) . ") and ( hubloc_flags & " . intval(HUBLOC_FLAGS_PRIMARY) . " )",
|
||||
intval($item['uid'])
|
||||
);
|
||||
}
|
||||
else {
|
||||
$chans = q("select xchan.*,hubloc.* from xchan left join hubloc on hubloc_hash = xchan_hash
|
||||
|
@ -1 +1 @@
|
||||
2013-06-19.349
|
||||
2013-06-20.350
|
||||
|
Reference in New Issue
Block a user