Permalink
Browse files

Improved performance with foreach

  • Loading branch information...
1 parent 26a13b4 commit 0ad919f00046dd23efa2168cf85d969d12e82d10 @acidvertigo acidvertigo committed Aug 16, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 catalog/includes/modules/order_total/ot_tax.php
@@ -26,8 +26,7 @@ function ot_tax() {
function process() {
global $order, $currencies;
- reset($order->info['tax_groups']);
- while (list($key, $value) = each($order->info['tax_groups'])) {
+ foreach ($order->info['tax_groups'] as $key => $value) {
if ($value > 0) {
$this->output[] = array('title' => $key . ':',
'text' => $currencies->format($value, true, $order->info['currency'], $order->info['currency_value']),

0 comments on commit 0ad919f

Please sign in to comment.