diff --git a/wpas-field.php b/wpas-field.php index 7ade5ab..dc8cb2c 100644 --- a/wpas-field.php +++ b/wpas-field.php @@ -467,8 +467,11 @@ private function get_input_value() { $value = $this->selected[0]; } elseif (!empty($this->selected)) { $value = $this->selected; - } elseif (is_array($this->values) && !empty($this->values[0])) { - $value = $this->values[0]; + } elseif (is_array($this->values)) { + if (!empty($this->values[0])) + $value = $this->values[0]; + else + $value = ''; } else { $value = $this->values; }