From f413579d911bda3fa8aae06e14376759be488116 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Wed, 20 Nov 2019 20:37:02 +0100 Subject: [PATCH] Bug PHP : confuse NULL and 0 --- include/lib/inum.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lib/inum.class.php b/include/lib/inum.class.php index f2755c499..6cc9f4e1c 100644 --- a/include/lib/inum.class.php +++ b/include/lib/inum.class.php @@ -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)