Permalink
Browse files

Change while with foreach loop

  • Loading branch information...
1 parent ae33f9f commit ab406eb3c2391bea8ce6411534fa9397db0727de @acidvertigo acidvertigo committed Jan 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 catalog/admin/includes/classes/split_page_results.php
@@ -70,7 +70,7 @@ function display_links($query_numrows, $max_rows_per_page, $max_page_links, $cur
if ($parameters != '') {
if (substr($parameters, -1) == '&') $parameters = substr($parameters, 0, -1);
$pairs = explode('&', $parameters);
- while (list(, $pair) = each($pairs)) {
+ foreach ($pairs as $pair) {
list($key,$value) = explode('=', $pair);
$display_links .= tep_draw_hidden_field(rawurldecode($key), rawurldecode($value));
}

0 comments on commit ab406eb

Please sign in to comment.