We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5311e75 + c0fdd6d commit 34b0b27Copy full SHA for 34b0b27
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