Remove unnecessary isset() check

This commit is contained in:
Joe Harvey 2019-04-30 10:03:22 +01:00 committed by Robbie Averill
parent 418017494f
commit 2cd0602886

View File

@ -47,7 +47,7 @@ class EditableCountryDropdownField extends EditableFormField
public function getValueFromData($data)
{
if (isset($data[$this->Name]) && !empty($data[$this->Name])) {
if (!empty($data[$this->Name])) {
$source = $this->getFormField()->getSource();
return $source[$data[$this->Name]];
}