Merge branch 'ticket-11985-MondialRelay_part2' into develop

This commit is contained in:
Marion Muszynski 2017-01-25 11:35:11 +01:00
commit 3e11994e33

View File

@ -486,6 +486,7 @@ class MondialrelayCarrier {
$country = $address['iso_code'];
$postcode = $address['postcode'];
$mode_tri = $mode == 'LD1' ? 'LDR': $mode;
$plantri = Db::getInstance()->getRow('
SELECT *
FROM `'._DB_PREFIX_.'mondialrelay_tri`
@ -493,7 +494,7 @@ class MondialrelayCarrier {
AND `destex` = "'.pSQL($postcode).'"
AND `cppay` = "'.pSQL($country).'"
AND (
`livmod` = "'.pSQL($mode).'"
`livmod` = "'.pSQL($mode_tri).'"
OR `livmod` = "HOM"
)
');
@ -505,7 +506,7 @@ class MondialrelayCarrier {
AND `destex` = "'.pSQL(substr($postcode, 0, 2)).'"
AND `cppay` = "'.pSQL($country).'"
AND (
`livmod` = "'.pSQL($mode).'"
`livmod` = "'.pSQL($mode_tri).'"
OR `livmod` = "HOM"
)
');