better way to deal with effective_uid

This commit is contained in:
friendica
2014-09-22 22:03:19 -07:00
parent fb05919d90
commit e8854bb19d
3 changed files with 12 additions and 12 deletions

View File

@@ -1230,19 +1230,11 @@ function add_children_to_list($children, &$arr) {
}
}
function conv_sort($arr,$order,$uid = 0) {
function conv_sort($arr,$order) {
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();