[*] Classes : fix bug #PSFV-162 - Remove unused variables

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12125 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-01-04 13:41:03 +00:00
parent a58bd0bc74
commit 5ae13861be
4 changed files with 4 additions and 16 deletions
-6
View File
@@ -164,8 +164,6 @@ class OrderOpcControllerCore extends ParentOrderController
case 'updateAddressesSelected':
if ($this->context->customer->isLogged(true))
{
$id_address_delivery = (int)(Tools::getValue('id_address_delivery'));
$id_address_invoice = (int)(Tools::getValue('id_address_invoice'));
$address_delivery = new Address((int)(Tools::getValue('id_address_delivery')));
$address_invoice = ((int)(Tools::getValue('id_address_delivery')) == (int)(Tools::getValue('id_address_invoice')) ? $address_delivery : new Address((int)(Tools::getValue('id_address_invoice'))));
if ($address_delivery->id_customer != $this->context->customer->id || $address_invoice->id_customer != $this->context->customer->id)
@@ -183,10 +181,6 @@ class OrderOpcControllerCore extends ParentOrderController
if (!sizeof($this->errors))
{
if ($this->context->customer->id)
$groups = $this->context->customer->getGroups();
else
$groups = array(1);
$result = $this->_getCarrierList();
// Wrapping fees
$wrapping_fees = (float)(Configuration::get('PS_GIFT_WRAPPING_PRICE'));