From 3de9a7277d03a509d4179ca4f38b2896bef6f0b6 Mon Sep 17 00:00:00 2001 From: lBrieu Date: Wed, 5 Oct 2011 07:55:21 +0000 Subject: [PATCH] [-] Solve problem when trying to view a specific order on the history page (bad order id) --- controllers/front/OrderDetailController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/front/OrderDetailController.php b/controllers/front/OrderDetailController.php index 213a1d6b0..e7cb82496 100644 --- a/controllers/front/OrderDetailController.php +++ b/controllers/front/OrderDetailController.php @@ -125,7 +125,7 @@ class OrderDetailControllerCore extends FrontController */ 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'); else {