dever 3 anni fa
parent
commit
48934b170d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/Relation.php

+ 1 - 1
lib/Relation.php

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