noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 14/28: Bug PHP : confuse NULL and 0


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 14/28: Bug PHP : confuse NULL and 0
Date: Sat, 30 Nov 2019 07:51:23 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit a099feae1795e4b29dcdc2d4fb5ac6f038267792
Author: Dany De Bontridder <address@hidden>
Date:   Wed Nov 20 20:37:02 2019 +0100

    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 f2755c4..6cc9f4e 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]