Fixed regression on AttributeInteger

SVN:trunk[1088]
This commit is contained in:
Romain Quetiez
2011-02-22 14:26:00 +00:00
parent c97f4d5ee7
commit 3441911781

View File

@@ -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;
}