// die2Exception

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10073 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2011-11-13 19:44:49 +00:00
parent 75cbb3abbb
commit afe8a4cc52
+1 -1
View File
@@ -125,7 +125,7 @@ class AdminOrdersControllerCore extends AdminController
if ($this->tabAccess['edit'] === '1')
{
if (!$order->hasBeenShipped())
die(Tools::displayError('The shipping number can only be set once the order has been shipped.'));
throw new PrestashopException('The shipping number can only be set once the order has been shipped.');
$_GET['view'.$this->table] = true;
$shipping_number = pSQL(Tools::getValue('shipping_number'));