From d4b4291ff9d56f2d547e7a7d7ebabf0b7ca890ad Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 27 Feb 2013 09:58:11 +0000 Subject: [PATCH] =?UTF-8?q?Modification=20des=20conditions=20maison=20m?= =?UTF-8?q?=C3=A8re?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/Metier/partenaires/classMLiens2.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } } }