Skip to content

Commit 2d840e8

Browse files
ENGCOM-2362: [Forwardport] Smallest codestyle fix in Option/Type/Text.php #16834
- Merge Pull Request #16834 from mage2pratik/magento2:2.3-develop-PR-port-16566 - Merged commits: 1. 5905236
2 parents ce5eacd + 5905236 commit 2d840e8

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
@@ -84,7 +84,7 @@ public function validateUserValue($values)
8484
*/
8585
public function prepareForCart()
8686
{
87-
if ($this->getIsValid() && strlen($this->getUserValue()) > 0) {
87+
if ($this->getIsValid() && ($this->getUserValue() !== '')) {
8888
return $this->getUserValue();
8989
} else {
9090
return null;

0 commit comments

Comments
 (0)