rabin пре 2 година
родитељ
комит
988f3887d1
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      lib/Relation.php

+ 3 - 1
lib/Relation.php

@@ -44,6 +44,8 @@ class Relation
         if ($child) {
             foreach ($child as $k => $v) {
 
+                $this->resetParent($v['to_uid'], $uid);
+                /*
                 $child_parent = $this->getParentAll($v['to_uid']);
                 if ($child_parent) {
                     foreach ($child_parent as $k1 => $v1) {
@@ -51,7 +53,7 @@ class Relation
                             Dever::db('invite/relation')->update(array('where_id' => $v['id'], 'uid' => $parent));
                         }
                     }
-                }
+                }*/
             }
         }
         return true;