// Revert normalization
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8019 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+3
-3
@@ -156,7 +156,7 @@ class CarrierCore extends ObjectModel
|
||||
return false;
|
||||
if (!$numRows = Db::getInstance()->NumRows())
|
||||
return false;
|
||||
if ($numRows == 1)
|
||||
if ((int)($numRows) == 1)
|
||||
Configuration::updateValue('PS_CARRIER_DEFAULT', (int)($this->id));
|
||||
return true;
|
||||
}
|
||||
@@ -689,7 +689,7 @@ class CarrierCore extends ObjectModel
|
||||
VALUES ('.$this->id.','.(int)$val['id_zone'].')');
|
||||
|
||||
//Copy default carrier
|
||||
if (Configuration::get('PS_CARRIER_DEFAULT') == $oldId)
|
||||
if ((int)(Configuration::get('PS_CARRIER_DEFAULT')) == $oldId)
|
||||
Configuration::updateValue('PS_CARRIER_DEFAULT', (int)($this->id));
|
||||
}
|
||||
|
||||
@@ -718,7 +718,7 @@ class CarrierCore extends ObjectModel
|
||||
if ($this->shipping_method == Carrier::SHIPPING_METHOD_DEFAULT)
|
||||
{
|
||||
// backward compatibility
|
||||
if (Configuration::get('PS_SHIPPING_METHOD'))
|
||||
if ((int)Configuration::get('PS_SHIPPING_METHOD'))
|
||||
$method = Carrier::SHIPPING_METHOD_WEIGHT;
|
||||
else
|
||||
$method = Carrier::SHIPPING_METHOD_PRICE;
|
||||
|
||||
Reference in New Issue
Block a user