[-] Solve problem when trying to view a specific order on the history page (bad order id)
This commit is contained in:
1 parent
2a237d5fc4
commit
3de9a7277d
1 file changed
+1
-1
@@ -125,7 +125,7 @@ class OrderDetailControllerCore extends FrontController
|
|||||||
*/
|
*/
|
||||||
public function initContent()
|
public function initContent()
|
||||||
{
|
{
|
||||||
if (!$id_order = (int)(Tools::getValue('id_order')) || !Validate::isUnsignedId($id_order))
|
if (!$id_order = (int)(Tools::getValue('id_order')) OR !Validate::isUnsignedId($id_order))
|
||||||
$this->errors[] = Tools::displayError('Order ID required');
|
$this->errors[] = Tools::displayError('Order ID required');
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user