Skip to content

Commit

Permalink
Merge pull request #52 from cjsewell/master
Browse files Browse the repository at this point in the history
Unserialize only if value is a string
  • Loading branch information
nyeholt authored Jan 10, 2018
2 parents 0706ccf + a2bcdae commit 0cf4ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/FieldType/MultiValueField.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function getValue()
if (is_null($value)) {
$value = $this->getField('Value');
}
$this->value = $this->unserializeData($value);
$this->value = is_string($value) ? $this->unserializeData($value) : $value;
return $this->value;
}

Expand Down

0 comments on commit 0cf4ccc

Please sign in to comment.