[-] TR : Minor changes

This commit is contained in:
bLeveque
2012-05-19 15:26:28 +00:00
parent 071fcdf038
commit a3ddb0bf7a
5 changed files with 8 additions and 10 deletions
+4 -6
View File
@@ -37,16 +37,15 @@ class PdfInvoiceControllerCore extends FrontController
public function postProcess()
{
$id_order = (int)Tools::getValue('id_order');
if (!$this->context->customer->isLogged() && !Tools::getValue('secure_key'))
Tools::redirect('index.php?controller=authentication&back=pdf-invoice');
if (!(int)Configuration::get('PS_INVOICE'))
die(Tools::displayError('Invoices are disabled in this shop.'));
if (isset($id_order) && Validate::isUnsignedId($id_order))
$order = new Order($id_order);
$id_order = (int)Tools::getValue('id_order');
if (Validate::isUnsignedId($id_order))
$order = new Order((int)$id_order);
if (!isset($order) || !Validate::isLoadedObject($order))
die(Tools::displayError('Invoice not found'));
@@ -84,5 +83,4 @@ class PdfInvoiceControllerCore extends FrontController
return $template;
}
}
}