// You shall not DIE!
This commit is contained in:
@@ -1120,7 +1120,7 @@ class OrderCore extends ObjectModel
|
||||
$order = new Order($id_order);
|
||||
$orderState = $order->getCurrentOrderState();
|
||||
if (!Validate::isLoadedObject($orderState) || !Validate::isLoadedObject($order))
|
||||
throw new PrestaShopException(sprintf('unable to load order id %s and/or its state', $id_order));
|
||||
return '';
|
||||
echo '<span style="width:20px; margin-right:5px;">';
|
||||
if (($orderState->invoice && $order->invoice_number) && (int)($tr['product_number']))
|
||||
echo '<a target="_blank" href="pdf.php?id_order='.(int)$order->id.'&pdf"><img src="../img/admin/tab-invoice.gif" alt="invoice" /></a>';
|
||||
|
||||
Reference in New Issue
Block a user