Merge branch 'develop' of gitlab.antadis.net:dev-antadis/bebeboutik into develop

This commit is contained in:
Christophe Latour 2017-08-25 10:55:12 +02:00
commit 4eef091227

View File

@ -21,9 +21,9 @@ class Order extends OrderCore {
$laposte_carriers = unserialize(Configuration::get('LAPOSTEWS_CARRIERS', serialize(array())));
$mondialrelay_carriers = unserialize(Configuration::get('MONDIALRELAYWS_CARRIERS', serialize(array())));
$carriers_drop = explode(',',Configuration::get('ANT_CARRIER_DROP'));
if(in_array($value,$mondialrelay_carriers)){
if(in_array((int)$value,$mondialrelay_carriers)){
return '<img width="18px" src="/img/carriers/logo_mr.png" alt="" />';
}elseif(in_array($value,$laposte_carriers) || in_array($value,$carriers_drop)){
}elseif(in_array((int)$value,$laposte_carriers) || in_array((int)$value,$carriers_drop)){
return '<img width="18px" src="/img/carriers/logo_socol.png" alt="" />';
}
}