Skip to content

Commit 614846d

Browse files
Merge 2.4-develop into 2.4.0-develop
2 parents a547ad0 + c0fdd6d commit 614846d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/ReviewSampleData/Model/Review.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ protected function prepareReview($row)
212212
protected function getRating($rating)
213213
{
214214
$ratingCollection = $this->ratingFactory->create()->getResourceCollection();
215-
if (!$this->ratings[$rating]) {
215+
if (empty($this->ratings[$rating])) {
216216
$this->ratings[$rating] = $ratingCollection->addFieldToFilter('rating_code', $rating)->getFirstItem();
217217
}
218218
return $this->ratings[$rating];

0 commit comments

Comments
 (0)