Bug PHP : confuse NULL and 0

This commit is contained in:
Dany De Bontridder 2019-11-20 20:37:02 +01:00
parent 61ff77bd8a
commit f413579d91

View file

@ -82,7 +82,7 @@ class INum extends IText
$this->javascript='onchange="format_number(this,'.$this->prec.');"';
}
$this->name=($p_name==null)?$this->name:$p_name;
$this->value=($p_value==null)?$this->value:$p_value;
$this->value=($p_value===null)?$this->value:$p_value;
$this->id=($this->id=="")?$this->name:$this->id;
if ($this->readOnly==true)