ExtensibleSet: do not array-filter when null

This commit is contained in:
Thomas Gelf 2016-05-20 10:40:58 +02:00
parent b3a1d54870
commit eb52918711

View file

@ -32,7 +32,9 @@ class ExtensibleSet extends FormElement
protected function _filterValue(&$value, &$key)
{
$value = array_filter($value, 'strlen');
if ($value !== null) {
$value = array_filter($value, 'strlen');
}
return parent::_filterValue($value, $key);
}