fix the "personal" network filter and introduction notifications
This commit is contained in:
@@ -1035,20 +1035,10 @@ function conv_sort($arr,$order) {
|
||||
foreach($parents as $i=>$_x)
|
||||
$parents[$i]['children'] = get_item_children($arr, $_x);
|
||||
|
||||
/*foreach($arr as $x) {
|
||||
if($x['id'] != $x['parent']) {
|
||||
$p = find_thread_parent_index($parents,$x);
|
||||
if($p !== false)
|
||||
$parents[$p]['children'][] = $x;
|
||||
}
|
||||
}*/
|
||||
if(count($parents)) {
|
||||
foreach($parents as $k => $v) {
|
||||
if(count($parents[$k]['children'])) {
|
||||
$parents[$k]['children'] = sort_item_children($parents[$k]['children']);
|
||||
/*$y = $parents[$k]['children'];
|
||||
usort($y,'sort_thr_created_rev');
|
||||
$parents[$k]['children'] = $y;*/
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1059,8 +1049,6 @@ function conv_sort($arr,$order) {
|
||||
$ret[] = $x;
|
||||
if(count($x['children']))
|
||||
add_children_to_list($x['children'], $ret);
|
||||
/*foreach($x['children'] as $y)
|
||||
$ret[] = $y;*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user