aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/conversation.php b/include/conversation.php
index b0a388a68..17792e09a 100644
--- a/include/conversation.php
+++ b/include/conversation.php
@@ -1230,11 +1230,19 @@ function add_children_to_list($children, &$arr) {
}
}
-function conv_sort($arr,$order) {
+function conv_sort($arr,$order,$uid = 0) {
if((!(is_array($arr) && count($arr))))
return array();
+ if($uid) {
+ for($x = 0; $x < count($arr); $x ++) {
+ $arr[$x]['real_uid'] = $arr[$x]['uid'];
+ $arr[$x]['uid'] = $uid;
+ }
+ }
+
+
$parents = array();
$children = array();