Index: branches/5.2.x/units/shipping_quote_engines/usps.php =================================================================== diff -u -N -r16516 -r16693 --- branches/5.2.x/units/shipping_quote_engines/usps.php (.../usps.php) (revision 16516) +++ branches/5.2.x/units/shipping_quote_engines/usps.php (.../usps.php) (revision 16693) @@ -1,6 +1,6 @@ types); $allowed_types = explode(", ", MODULE_SHIPPING_USPS_TYPES); - while (list($key, $value) = each($this->types)) - { + foreach ( array_keys($this->types) as $key ) { if ( !in_array($key, $allowed_types) ) continue; $request .= ''. ''.$key.''. @@ -720,6 +719,7 @@ ''; $services_count++; } + $request .= ''; $api_query = 'RateV3'; } @@ -1338,4 +1338,4 @@ return $usps_data; } -} \ No newline at end of file +}