Change logical operator to prevent notices

This commit is contained in:
Alex Lushpai 2020-04-15 14:21:04 +03:00 committed by GitHub
commit 0d0f0aa1d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -358,7 +358,7 @@ class ModelExtensionRetailcrmIcml extends Model
$this->optionValues[$optionValueId] = $optionValue; $this->optionValues[$optionValueId] = $optionValue;
} }
if (!empty($option['name']) || !empty($optionValue['name'])) { if (!empty($option['name']) && !empty($optionValue['name'])) {
return array( return array(
'optionName' => $option['name'], 'optionName' => $option['name'],
'optionValue' => $optionValue['name'] 'optionValue' => $optionValue['name']