Permalink
Browse files

foreach loop instead of while

  • Loading branch information...
1 parent 5039471 commit f7a46fa7ea4e2226a0b7a5df86f92fb098bed684 @acidvertigo acidvertigo committed Jan 2, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 catalog/includes/modules/payment/rbsworldpay_hosted.php
@@ -134,8 +134,7 @@ function confirmation() {
if ($insert_order == true) {
$order_totals = array();
if (is_array($order_total_modules->modules)) {
- reset($order_total_modules->modules);
- while (list(, $value) = each($order_total_modules->modules)) {
+ foreach ($order_total_modules->modules as $value) {
$class = substr($value, 0, strrpos($value, '.'));
if ($GLOBALS[$class]->enabled) {
$n=sizeof($GLOBALS[$class]->output);

0 comments on commit f7a46fa

Please sign in to comment.