From e7957e14489ce8eb3b69ebede928dfe441a4924d Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 10 Jul 2012 19:28:02 -0700 Subject: create fetch_tags function, make search work again, change logo --- include/conversation.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'include/conversation.php') diff --git a/include/conversation.php b/include/conversation.php index f81a7e7d2..ce8f5779c 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1102,26 +1102,13 @@ function status_editor($a,$x, $notes_cid = 0, $popup=false) { } -function conv_sort($arr,$tags,$order) { +function conv_sort($arr,$order) { if((!(is_array($arr) && count($arr)))) return array(); $parents = array(); - - for($x = 0; $x < count($arr); $x ++) { - if(count($tags)) { - foreach($tags as $t) { - if($t['oid'] == $arr[$x]['item_id']) { - if(! is_array($arr[$x]['term'])) - $arr[$x]['term'] = array(); - $arr[$x]['term'][] = $t; - } - } - } - } - foreach($arr as $x) if($x['id'] == $x['parent']) $parents[] = $x; -- cgit v1.2.3