diff --git a/library/Metier/partenaires/classMLiens2.php b/library/Metier/partenaires/classMLiens2.php index a5867050..6a910b03 100644 --- a/library/Metier/partenaires/classMLiens2.php +++ b/library/Metier/partenaires/classMLiens2.php @@ -220,13 +220,13 @@ class MLiens2 //Through the list $liens = $this->getActionnaires($id, true); - + file_put_contents('test.log', print_r($liens,1)."\n", FILE_APPEND); //Find the following up entity if ( count($liens)>0 ) { foreach ( $liens as $item ) { //Don't through again and again if ( in_array($item->idAct, $this->findId) ) { - continue; + return $item->idAct; } // Remove Special @@ -247,7 +247,7 @@ class MLiens2 } //-- elseif ( $item->idAct > 1000 ) { - return $item->idAct; + return $this->getHead($item->idAct); } } }