From eb529187112ef5ab61bfbfdddd67314681fe9bb3 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 20 May 2016 10:40:58 +0200 Subject: [PATCH] ExtensibleSet: do not array-filter when null --- library/Director/Web/Form/Element/ExtensibleSet.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Director/Web/Form/Element/ExtensibleSet.php b/library/Director/Web/Form/Element/ExtensibleSet.php index a5af245b..12f6134b 100644 --- a/library/Director/Web/Form/Element/ExtensibleSet.php +++ b/library/Director/Web/Form/Element/ExtensibleSet.php @@ -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); }