Skip to content

Commit

Permalink
code updated as per instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
saphal authored and saphaljha committed Nov 23, 2018
1 parent fd4dd39 commit a26b9bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Review/Model/ResourceModel/Rating.php
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,11 @@ public function getReviewSummary($object, $onlyForCurrentStore = true)

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

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

if ($onlyForCurrentStore) {
foreach ($data as $row) {
if (!$row['store_id'] == $currentStore) {
if ($row['store_id'] !== $currentStore) {
$object->addData($row);
}
}
Expand Down

0 comments on commit a26b9bd

Please sign in to comment.