Skip to content

Commit

Permalink
remove not needed checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kpodemski committed Dec 9, 2022
1 parent 919e51a commit 2d54f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/front/ListComments.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function display()

$usefulness = $productCommentRepository->getProductCommentUsefulness($productComment['id_product_comment']);
$productComment = array_merge($productComment, $usefulness);
if (empty($productComment['customer_name']) && !isset($productComment['firstname']) && !isset($productComment['lastname'])) {
if (empty($productComment['customer_name'])) {
$productComment['customer_name'] = $this->trans('Deleted account', [], 'Modules.Productcomments.Shop');
}

Expand Down

0 comments on commit 2d54f47

Please sign in to comment.