rabin 2 years ago
parent
commit
3a91002a9f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/Relation.php

+ 2 - 2
lib/Relation.php

@@ -41,7 +41,7 @@ class Relation
         if ($info) {
             $state = Dever::db('invite/relation')->update(array('where_id' => $info['id'], 'uid' => $new_parent));
             if ($state) {
-                $child = $this->getChild($uid, 1);
+                $child = $this->getChild($uid, false, false);
                 if ($child) {
                     foreach ($child as $k => $v) {
                         $this->replaceParent($v['to_uid'], $old_parent, $new_parent);
@@ -58,7 +58,7 @@ class Relation
         Dever::db('invite/relation')->delete(array('to_uid' => $uid));
         $this->set($parent, $uid);
 
-        $child = $this->getChild($uid, 1);
+        $child = $this->getChild($uid, 1, false);
         if ($child) {
             foreach ($child as $k => $v) {