diff --git a/modules/formulize/include/formdisplay.php b/modules/formulize/include/formdisplay.php index 4557a9973..481986df6 100644 --- a/modules/formulize/include/formdisplay.php +++ b/modules/formulize/include/formdisplay.php @@ -2994,7 +2994,7 @@ function loadValue($prevEntry, $element, $ele_value, $owner_groups, $entry_id) { } } } - if ($type == "radio" AND $entry_id != "new" AND ($value === "" OR is_null($value)) AND array_search(1, $ele_value)) { // for radio buttons, if we're looking at an entry, and we've got no value to load, but there is a default value for the radio buttons, then use that default value (it's normally impossible to unset the default value of a radio button, so we want to ensure it is used when rendering the element in these conditions) + if ($type == "radio" AND $entry_id != "new" AND ($value === "" OR is_null($value)) AND array_search(1, (array) $ele_value)) { // for radio buttons, if we're looking at an entry, and we've got no value to load, but there is a default value for the radio buttons, then use that default value (it's normally impossible to unset the default value of a radio button, so we want to ensure it is used when rendering the element in these conditions) $ele_value = $ele_value; } elseif ($type != "select") {