Fixed issue #87
This commit is contained in:
parent
c824c58c28
commit
db5e42e273
@ -67,17 +67,15 @@ Class Community extends CoordinationObj
|
|||||||
WithBlocPath("Community", "actionLecture");
|
WithBlocPath("Community", "actionLecture");
|
||||||
|
|
||||||
$tab = $GLOBALS['SYSTEM_MANAGER']['NODE']->getInstanceFromIdPere(1);
|
$tab = $GLOBALS['SYSTEM_MANAGER']['NODE']->getInstanceFromIdPere(1);
|
||||||
|
|
||||||
for ($i=0; $i<count($tab);$i++)
|
for ($i=0; $i<count($tab);$i++)
|
||||||
{
|
{
|
||||||
$lib=$tab[$i]->getLibelle($currentCode);
|
$lib = $tab[$i]->getLibelle($currentCode);
|
||||||
$key = $tab[$i]->getId();
|
$key = $tab[$i]->getId();
|
||||||
$pub = $tab[$i]->getListPublic();
|
$pub = $tab[$i]->getListPublic();
|
||||||
$reg = $tab[$i]->getRegisterEnable();
|
$reg = $tab[$i]->getRegisterEnable();
|
||||||
if ($lib=="")
|
if ($lib==""){ $lib=$tabNode[$i]->getLibelle($defaultCode); }
|
||||||
{
|
if ($key==2){ $lib="Qware"; }
|
||||||
$lib=$tabNode[$i]->getLibelle($defaultCode);
|
|
||||||
}
|
|
||||||
$tabNode[$i][0]= $key;
|
$tabNode[$i][0]= $key;
|
||||||
$tabNode[$i][1]= $lib;
|
$tabNode[$i][1]= $lib;
|
||||||
$tabNode[$i][2]= $pub;
|
$tabNode[$i][2]= $pub;
|
||||||
@ -117,9 +115,10 @@ Class Community extends CoordinationObj
|
|||||||
$nbPrint=0;
|
$nbPrint=0;
|
||||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxAttribut("ligne.col.ClassName","cadre1");
|
$GLOBALS["SYSTEM_TEMPLATE"]->MxAttribut("ligne.col.ClassName","cadre1");
|
||||||
//Parcours des noeuds
|
//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)
|
if( $nbPrint < 12)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user