Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed reset array pointer as foreach does not need it anymore.

  • Loading branch information...
commit 7dbcdd2e185a31337da1615082b9741553684461 1 parent 72db666
unknown authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 catalog/includes/functions/general.php
View
7 catalog/includes/functions/general.php
@@ -173,8 +173,7 @@ function tep_get_all_get_params($exclude_array = '') {
$get_url = '';
if (is_array($HTTP_GET_VARS) && (sizeof($HTTP_GET_VARS) > 0)) {
- reset($HTTP_GET_VARS);
-
+
foreach($HTTP_GET_VARS as $key => $value) {
if ( is_string($value) && (strlen($value) > 0) && ($key != tep_session_name()) && ($key != 'error') && (!in_array($key, $exclude_array)) && ($key != 'x') && ($key != 'y') ) {
$get_url .= $key . '=' . rawurlencode(stripslashes($value)) . '&';
@@ -950,9 +949,7 @@ function tep_get_uprid($prid, $params) {
$attributes_check = true;
$attributes_ids = '';
- reset($params);
-
- foreach($params as $key => $option) {
+ foreach($params as $key => $option) {
if (is_numeric($option) && is_numeric($value)) {
$attributes_ids .= '{' . (int)$option . '}' . (int)$value;
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.