Skip to content

Commit 7d92f4f

Browse files
ENGCOM-2270: Smallest codestyle fix in Option/Type/Text.php #16566
- Merge Pull Request #16566 from aitoc/magento2:option-type-fix - Merged commits: 1. 5679e14
2 parents 856def3 + 5679e14 commit 7d92f4f

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/Model/Product/Option/Type

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/Product/Option/Type/Text.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function validateUserValue($values)
8181
*/
8282
public function prepareForCart()
8383
{
84-
if ($this->getIsValid() && strlen($this->getUserValue()) > 0) {
84+
if ($this->getIsValid() && ($this->getUserValue() !== '')) {
8585
return $this->getUserValue();
8686
} else {
8787
return null;

0 commit comments

Comments
 (0)