diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 0223f93af..13f31769f 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -567,7 +567,7 @@ class AttributeInteger extends AttributeDBField public function MakeRealValue($proposedValue) { if (is_null($proposedValue)) return null; - if ($proposedValue == '') return null; + if ($proposedValue === '') return null; // 0 is transformed into '' ! return (int)$proposedValue; }