make collections work again
This commit is contained in:
parent
b0a4f1b30a
commit
9d49f2a47b
@ -432,16 +432,21 @@ function network_content(&$a, $update = 0, $load = false) {
|
|||||||
// NOTREACHED
|
// NOTREACHED
|
||||||
}
|
}
|
||||||
|
|
||||||
$contacts = expand_groups(array($arr['group']));
|
$contact_str = '';
|
||||||
if((is_array($contacts)) && count($contacts)) {
|
$contacts = group_get_members($group);
|
||||||
$contact_str = implode(',',$contacts);
|
if($contacts) {
|
||||||
|
foreach($contacts as $c) {
|
||||||
|
if($contact_str)
|
||||||
|
$contact_str .= ',';
|
||||||
|
$contact_str .= "'" . $c['xchan'] . "'";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$contact_str = ' 0 ';
|
$contact_str = ' 0 ';
|
||||||
info( t('Group is empty'));
|
info( t('Group is empty'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$sql_extra = " AND item.parent IN ( SELECT DISTINCT parent FROM item WHERE true $sql_options AND ( author_xchan IN ( $contact_str ) OR owner_xchan in ( $contact_str) or allow_gid like '" . protect_sprintf('%<' . dbesc($r[0]['hash']) . '>%') . "' ) and item_restrict = 0 ) ";
|
$sql_extra = " AND item.parent IN ( SELECT DISTINCT parent FROM item WHERE true $sql_options AND (( author_xchan IN ( $contact_str ) OR owner_xchan in ( $contact_str)) or allow_gid like '" . protect_sprintf('%<' . dbesc($r[0]['hash']) . '>%') . "' ) and item_restrict = 0 ) ";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
2013-09-17.439
|
2013-09-18.440
|
||||||
|
Reference in New Issue
Block a user