Changeset 390 for trunk/lib/Cart.inc.php


Ignore:
Timestamp:
Nov 18, 2011 4:01:54 AM (13 years ago)
Author:
anonymous
Message:

Made logMsg more efficient, improved message throttle functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Cart.inc.php

    r376 r390  
    279279    function sum($key='extended_price')
    280280    {
    281         global $app;
    282 
    283281        $sum = 0;
    284282        switch ($key) {
     
    294292
    295293        default :
    296             // Retreive arbitrary values stored in the cart (shipping, air miles, etc).
     294            // Retrieve arbitrary values stored in the cart (shipping, air miles, etc).
    297295            foreach ($_SESSION['_cart'][$this->_ns]['items'] as $item_id => $specs) {
    298296                $sum += isset($specs[$key]) && is_numeric($specs[$key]) ? $specs[$key] * $specs['quantity'] : 0;
Note: See TracChangeset for help on using the changeset viewer.