Fixed issue #87

This commit is contained in:
Rooty 2021-09-14 14:31:45 +02:00
parent c824c58c28
commit db5e42e273

View File

@ -67,17 +67,15 @@ Class Community extends CoordinationObj
WithBlocPath("Community", "actionLecture");
$tab = $GLOBALS['SYSTEM_MANAGER']['NODE']->getInstanceFromIdPere(1);
for ($i=0; $i<count($tab);$i++)
{
$lib=$tab[$i]->getLibelle($currentCode);
$lib = $tab[$i]->getLibelle($currentCode);
$key = $tab[$i]->getId();
$pub = $tab[$i]->getListPublic();
$reg = $tab[$i]->getRegisterEnable();
if ($lib=="")
{
$lib=$tabNode[$i]->getLibelle($defaultCode);
}
if ($lib==""){ $lib=$tabNode[$i]->getLibelle($defaultCode); }
if ($key==2){ $lib="Qware"; }
$tabNode[$i][0]= $key;
$tabNode[$i][1]= $lib;
$tabNode[$i][2]= $pub;
@ -117,9 +115,10 @@ Class Community extends CoordinationObj
$nbPrint=0;
$GLOBALS["SYSTEM_TEMPLATE"]->MxAttribut("ligne.col.ClassName","cadre1");
//Parcours des noeuds
for($i= (count($tabNode)-1);$i>0;$i--)
for($i= 0;$i<count($tabNode);$i++)
{
if ($tabNode[$i][0] != 2 && $tabNode[$i][0] != 3 && $tabNode[$i][2] == "on")
// if ($tabNode[$i][0] != 2 && $tabNode[$i][0] != 3 && $tabNode[$i][2] == "on")
if ($tabNode[$i][0] != 3 && $tabNode[$i][2] == "on")
{
if( $nbPrint < 12)
{