moin.
1. 98_HMinfo.pm: funktion HMinfo_templateUsg()
# if($defs{$dName}{helper}{tmpl}{$tid}){ #frank: problem if tplt has only 1 parameter with value=0
if($defs{$dName}{helper}{tmpl}{$tid} ne ''){ #frank: no problems
die if bedingung macht nicht, was sie soll, wenn das entsprechende template genau einen parameter enthält und dieser den wert 0 (null) hat.
dann wird die bedingung unwahr und der block wird nicht ausgeführt.
zusätzlich habe ich noch 3 weitere stellen dieser art in cul_hm gefunden:
2. CUL_HM_Set($@)
im abschnitt "elsif($cmd =~ m/tplPara(..)(.)_.*/) {"
# if ($hash->{helper}{tmpl}{$t[$tNo]}){# we have a parameter #frank
if ($hash->{helper}{tmpl}{$t[$tNo]} ne ''){# we have a parameter #frank
3. CUL_HM_TmplSetParam($)
# if ($defs{$name}{helper}{tmpl}{$t}){# we have a parameter #frank
if ($defs{$name}{helper}{tmpl}{$t} ne ''){# we have a parameter #frank
4. CUL_HM_setTmplDisp($)
# if($tHash->{helper}{tmpl}{$_}){ #frank
if($tHash->{helper}{tmpl}{$_} ne ''){ #frank