Skip to content

Commit

Permalink
PropertyModifierSplit: check for null values
Browse files Browse the repository at this point in the history
fixes #2739
  • Loading branch information
Thomas-Gelf committed Apr 26, 2023
1 parent 978d9bc commit 623dd1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static function addSettingsFormFields(QuickForm $form)

public function transform($value)
{
if (! strlen(trim($value))) {
if ($value === null || ! strlen(trim($value))) {
if ($this->getSetting('when_empty', 'empty_array') === 'empty_array') {
return array();
} else {
Expand Down

0 comments on commit 623dd1c

Please sign in to comment.