diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index 28b6a15c2..ea2519b19 100644 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -3591,7 +3591,7 @@ class XmlFormFieldDropdown extends XmlFormField $html .= 'value="' . (($findValue != '') ? $findValue : $firstValue) . '" />'; } - $this->selectedValue = ($findValue != "") ? $findValue : ($count == 0) ? $firstValue : ""; + $this->selectedValue = (!empty($findValue) ? $findValue : ($count == 0)) ? $firstValue : ""; } else { //Render Field showing only value; foreach ($this->option as $optValue => $optName) {