fix when no order in one of country

This commit is contained in:
Marion Muszynski 2017-02-17 10:35:25 +01:00
parent 7ef48d6256
commit b64a84b5e7

View File

@ -30,6 +30,9 @@ if ($module_instance->active) {
//we treat each locale
foreach ($orders as $orderKey => $orderValues) {
if(empty($orders[$orderKey])){
continue;
}
$opt = array(
'tsid' => Configuration::get('TRUSTED_SHOP_' . strtoupper($orderKey) . '_ID'),
'tsuser' => Configuration::get('TRUSTED_SHOP_USER'),