Skip to content

Commit 4be563b

Browse files
author
Ilan Parmentier
authored
Update ListAjax.php
1 parent 5516649 commit 4be563b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/code/Magento/Review/Controller/Product/ListAjax.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ class ListAjax extends ProductController implements HttpGetActionInterface
2222
*/
2323
public function execute()
2424
{
25-
if (!$this->getRequest()->isAjax()
26-
|| !$this->initProduct()) {
25+
if (
26+
!$this->getRequest()->isAjax() ||
27+
!$this->initProduct()
28+
) {
2729
/** @var \Magento\Framework\Controller\Result\Forward $resultForward */
2830
$resultForward = $this->resultFactory->create(ResultFactory::TYPE_FORWARD);
2931
return $resultForward->forward('noroute');

0 commit comments

Comments
 (0)