Skip to content

Commit

Permalink
ENGCOM-2270: Smallest codestyle fix in Option/Type/Text.php #16566
Browse files Browse the repository at this point in the history
 - Merge Pull Request #16566 from aitoc/magento2:option-type-fix
 - Merged commits:
   1. 5679e14
  • Loading branch information
magento-engcom-team committed Jul 11, 2018
2 parents 856def3 + 5679e14 commit 7d92f4f
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 7d92f4f

Please sign in to comment.