diff --git a/lib/form/select.php b/lib/form/select.php index b84b37a6bd228..7195401151dab 100644 --- a/lib/form/select.php +++ b/lib/form/select.php @@ -166,7 +166,7 @@ function getElementTemplateType(){ */ function exportValue(&$submitValues, $assoc = false) { - $emptyvalue = $this->getMultiple() ? [] : ''; + $emptyvalue = $this->getMultiple() ? [] : null; if (empty($this->_options)) { return $this->_prepareValue($emptyvalue, $assoc); }