dever 3 years ago
parent
commit
48934b170d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Relation.php

+ 1 - 1
lib/Relation.php

@@ -44,7 +44,7 @@ class Relation
         if ($child) {
         if ($child) {
             foreach ($child as $k => $v) {
             foreach ($child as $k => $v) {
 
 
-                $child_parent = $this->getParentAll($v['uid']);
+                $child_parent = $this->getParentAll($v['to_uid']);
                 if ($child_parent) {
                 if ($child_parent) {
                     foreach ($child_parent as $k1 => $v1) {
                     foreach ($child_parent as $k1 => $v1) {
                         if ($v1['level'] > $v['level']) {
                         if ($v1['level'] > $v['level']) {