Skip to content

Commit

Permalink
check null omage
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoducnhuiit authored Jul 6, 2022
1 parent 2d6292e commit e937517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Block/Categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function getImage($category)
$id = $category->getId();
$category = $this->categoryFactory->create();
$category->load($id);
$image = $category->getData('magepow_thumbnail');
$image = ($category->getData('magepow_thumbnail') != NULL) ? $category->getData('magepow_thumbnail') : '';
}
return $this->getImageUrl($image);
}
Expand Down

0 comments on commit e937517

Please sign in to comment.