On Friday 11 February 2011 13:37:35 Denis Linvinus wrote: > I found little bug, Hi Denis,
> imposible to use '0' as condition parameter It seems you are doing same template as mine :-) > following template don't work > > ##IFticket.numberoftasks=0## --- ##ENDIFticket.numberoftasks## > ##ELSEticket.numberoftasks## ##lang.ticket.numberoftasks## : > ##ticket.numberoftasks## ##ENDELSEticket.numberoftasks## If found a workaround by using this template : ##IFticket.numberoftasks= 0## ##ENDIFticket.numberoftasks## ##ELSEticket.numberoftasks## ##FOREACHtasks## Le ##task.date##, ##task.author## a écrit: ##task.description####lang.task.time## : ##task.time## ##ENDFOREACHtasks## ##ENDELSEticket.numberoftasks## > problem with > > if (empty($out[2][$key]) ){ // No = : check if ot empty or not null > > zero also interpretete as empty, so we need to check length too, or > something similar Add a space before 0 and it should work... Nicolas _______________________________________________ Glpi-dev mailing list Glpi-dev@gna.org https://mail.gna.org/listinfo/glpi-dev