We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a547ad0 + c0fdd6d commit 614846dCopy full SHA for 614846d
app/code/Magento/ReviewSampleData/Model/Review.php
@@ -212,7 +212,7 @@ protected function prepareReview($row)
212
protected function getRating($rating)
213
{
214
$ratingCollection = $this->ratingFactory->create()->getResourceCollection();
215
- if (!$this->ratings[$rating]) {
+ if (empty($this->ratings[$rating])) {
216
$this->ratings[$rating] = $ratingCollection->addFieldToFilter('rating_code', $rating)->getFirstItem();
217
}
218
return $this->ratings[$rating];
0 commit comments