Skip to content

Commit

Permalink
smallest fix in Option/Type/Text.php
Browse files Browse the repository at this point in the history
  • Loading branch information
likemusic authored and mage2pratik committed Jul 15, 2018
1 parent 7d62c64 commit 5a9fef2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function validateUserValue($values)
*/
public function prepareForCart()
{
if ($this->getIsValid() && strlen($this->getUserValue()) > 0) {
if ($this->getIsValid() && ($this->getUserValue() !== '')) {
return $this->getUserValue();
} else {
return null;
Expand Down

0 comments on commit 5a9fef2

Please sign in to comment.