Commit ebe50616 authored by mDeflotte's avatar mDeflotte

// BugFix : use current($array instead of $array[0]

parent 2a18fba2
......@@ -1333,7 +1333,7 @@ class CartCore extends ObjectModel
foreach ($packages as $id_package => $package)
{
// No carriers available
if (count($package['carrier_list']) == 1 && $package['carrier_list'][0] == 0)
if (count($package['carrier_list']) == 1 && current($package['carrier_list']) == 0)
return array();
$carriers_price[$id_address][$id_package] = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment