Skip to content

Commit

Permalink
bugfix for text and textarea fields
Browse files Browse the repository at this point in the history
  • Loading branch information
raideus committed Jan 10, 2015
1 parent 1624b14 commit 1acfa80
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wpas-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1acfa80

Please sign in to comment.