diff --git a/api/src/Etemplate/Widget/Select.php b/api/src/Etemplate/Widget/Select.php index 4617741749..91de44b564 100644 --- a/api/src/Etemplate/Widget/Select.php +++ b/api/src/Etemplate/Widget/Select.php @@ -429,7 +429,7 @@ class Select extends Etemplate\Widget // so check here, as we re-index // Duplicates might happen if app programmer isn't paying attention and // either uses the same ID in the template, or adds the options twice - $check_value = (string)(is_array($label) && array_key_exists('value', $label) ? $label['value'] : $value); + $check_value = (string)(is_array($label) && array_key_exists('value', $label) && !is_array($label['value']) ? $label['value'] : $value); if (isset($values[$check_value])) { unset($options[$value]);