Skip to content

Commit c7e306f

Browse files
rogerdzsumesh-GL
authored andcommitted
Undefined array key in ProductRepository getById
1 parent 1e33c35 commit c7e306f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Review/Block/Form.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2013 Adobe
4+
* All Rights Reserved.
55
*/
66
namespace Magento\Review\Block;
77

@@ -214,6 +214,6 @@ public function getRegisterUrl()
214214
*/
215215
protected function getProductId()
216216
{
217-
return $this->getRequest()->getParam('id', false);
217+
return (int) $this->getRequest()->getParam('id', false);
218218
}
219219
}

0 commit comments

Comments
 (0)