Skip to content

Commit 451b6ba

Browse files
authored
Fixed code standard error
1 parent e40b9c7 commit 451b6ba

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Catalog/Model/Product/Attribute/Backend

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/Model/Product/Attribute/Backend/Tierprice.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ protected function modifyPriceData($object, $data)
168168
$specialPriceToDate = $object->getSpecialToDate();
169169
$today = time();
170170

171-
if ($specialPrice && ($object->getPrice() > $object->getFinalPrice())){
171+
if ($specialPrice && ($object->getPrice() > $object->getFinalPrice())) {
172172
if ($today >= strtotime($specialPriceFromDate) && $today <= strtotime($specialPriceToDate) ||
173-
$today >= strtotime($specialPriceFromDate) && is_null($specialPriceToDate)) {
173+
$today >= strtotime($specialPriceFromDate) && is_null($specialPriceToDate) === TRUE) {
174174
$price = $specialPrice;
175175
}
176176
}

0 commit comments

Comments
 (0)