From 2cd0602886cff777d53e57c10c4b9d39f4fe3ef4 Mon Sep 17 00:00:00 2001 From: Joe Harvey Date: Tue, 30 Apr 2019 10:03:22 +0100 Subject: [PATCH] Remove unnecessary isset() check --- code/Model/EditableFormField/EditableCountryDropdownField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Model/EditableFormField/EditableCountryDropdownField.php b/code/Model/EditableFormField/EditableCountryDropdownField.php index f78bae0..849d585 100644 --- a/code/Model/EditableFormField/EditableCountryDropdownField.php +++ b/code/Model/EditableFormField/EditableCountryDropdownField.php @@ -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]]; }