From c824c58c283159298a7adf9328b0c77a53feda3e Mon Sep 17 00:00:00 2001 From: "tristan.champomier" Date: Tue, 14 Sep 2021 00:24:50 +0200 Subject: [PATCH] Fixed issue #86. --- lib/object_coordination/community/community.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/object_coordination/community/community.php b/lib/object_coordination/community/community.php index ecaafe5..653cd1d 100755 --- a/lib/object_coordination/community/community.php +++ b/lib/object_coordination/community/community.php @@ -72,12 +72,16 @@ Class Community extends CoordinationObj { $lib=$tab[$i]->getLibelle($currentCode); $key = $tab[$i]->getId(); + $pub = $tab[$i]->getListPublic(); + $reg = $tab[$i]->getRegisterEnable(); if ($lib=="") { $lib=$tabNode[$i]->getLibelle($defaultCode); } $tabNode[$i][0]= $key; $tabNode[$i][1]= $lib; + $tabNode[$i][2]= $pub; + $tabNode[$i][3]= $reg; } krsort($tabNode); @@ -115,7 +119,7 @@ Class Community extends CoordinationObj //Parcours des noeuds for($i= (count($tabNode)-1);$i>0;$i--) { - if ($tabNode[$i][0] != 2 && $tabNode[$i][0] != 3) + if ($tabNode[$i][0] != 2 && $tabNode[$i][0] != 3 && $tabNode[$i][2] == "on") { if( $nbPrint < 12) {