// die2exception

This commit is contained in:
mMarinetti
2012-02-17 15:49:27 +00:00
parent cf253f2e8a
commit 5e3ff7eacd
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ class AdminOrdersControllerCore extends AdminController
$order = new Order($id_order);
$order_state = $order->getCurrentOrderState();
if (!Validate::isLoadedObject($order_state) || !Validate::isLoadedObject($order))
die(Tools::displayError('Invalid objects'));
throw new PrestaShopException(sprintf('unable to load order id %s and/or its state', $id_order));
$this->context->smarty->assign(array(
'order' => $order,