Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Precount for performance sooo many.....

  • Loading branch information...
commit ad509b6e8e04207b2f16d5795f20f9a18ead8469 1 parent 32ee1a2
unknown authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 catalog/includes/classes/shipping.php
7 catalog/includes/classes/shipping.php
View
@@ -31,8 +31,8 @@ function shipping($module = '') {
$include_modules[] = array('class' => $class, 'file' => $value);
}
}
-
- for ($i=0, $n=sizeof($include_modules); $i<$n; $i++) {
+ $n=sizeof($include_modules);
+ for ($i=0; $i<$n; $i++) {
include(DIR_WS_LANGUAGES . $language . '/modules/shipping/' . $include_modules[$i]['file']);
include(DIR_WS_MODULES . 'shipping/' . $include_modules[$i]['file']);
@@ -106,7 +106,8 @@ function cheapest() {
}
$cheapest = false;
- for ($i=0, $n=sizeof($rates); $i<$n; $i++) {
+ $n=sizeof($rates);
+ for ($i=0; $i<$n; $i++) {
if (is_array($cheapest)) {
if ($rates[$i]['cost'] < $cheapest['cost']) {
$cheapest = $rates[$i];
Please sign in to comment.
Something went wrong with that request. Please try again.