diff options
Diffstat (limited to 'include/conversation.php')
-rw-r--r-- | include/conversation.php | 15 |
1 files changed, 1 insertions, 14 deletions
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; |