diff --git a/core/model/fieldtypes/StringField.php b/core/model/fieldtypes/StringField.php index 74bdd065d..50c6ffd07 100644 --- a/core/model/fieldtypes/StringField.php +++ b/core/model/fieldtypes/StringField.php @@ -44,7 +44,7 @@ abstract class StringField extends DBField { * @param $value boolean True if empty strings are to be converted to null */ function setNullifyEmpty($value) { - $this->nullifyEmpty == $value ? true : false; + $this->nullifyEmpty = ($value ? true : false); } /** * Get whether this field stores empty strings rather than converting them to null