fix the "personal" network filter and introduction notifications

This commit is contained in:
friendica
2013-01-09 23:07:13 -08:00
parent 8a930241a4
commit f0a08a05ae
5 changed files with 10 additions and 26 deletions

View File

@@ -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;*/
}
}