Skip to content

Commit a26b9bd

Browse files
saphalsaphaljha
authored andcommitted
code updated as per instructions
1 parent fd4dd39 commit a26b9bd

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Review/Model/ResourceModel

1 file changed

+2
-2
lines changed

app/code/Magento/Review/Model/ResourceModel/Rating.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,11 @@ public function getReviewSummary($object, $onlyForCurrentStore = true)
425425

426426
$data = $connection->fetchAll($select, [':review_id' => $object->getReviewId()]);
427427

428-
$currentStore = ($this->_storeManager->isSingleStoreMode()) ? $this->_storeManager->getStore()->getId() : NULL ;
428+
$currentStore = ($this->_storeManager->isSingleStoreMode()) ? $this->_storeManager->getStore()->getId() : null ;
429429

430430
if ($onlyForCurrentStore) {
431431
foreach ($data as $row) {
432-
if (!$row['store_id'] == $currentStore) {
432+
if ($row['store_id'] !== $currentStore) {
433433
$object->addData($row);
434434
}
435435
}

0 commit comments

Comments
 (0)