|
@@ -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) {
|
|
|
|