Skip to content

Commit 582bc9f

Browse files
author
Stanislav Idolov
authored
ENGCOM-2270: Smallest codestyle fix in Option/Type/Text.php #16566
2 parents ef16761 + 7d92f4f commit 582bc9f

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)