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


Ignore:
Timestamp:
May 3, 2014 11:09:03 PM (10 years ago)
Author:
anonymous
Message:

Convert tabs to spaces, and lineendings to LF in all files.

File:
1 edited

Legend:

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

    r478 r479  
    8282    public function __construct($namespace='')
    8383    {
    84         $app =& App::getInstance();
     84        $app =& App::getInstance();
    8585
    8686        $this->_ns = $namespace;
     
    114114    public function getParam($param)
    115115    {
    116         $app =& App::getInstance();
     116        $app =& App::getInstance();
    117117   
    118118        if (array_key_exists($param, $this->_params)) {
     
    279279    public function sum($key='extended_price')
    280280    {
    281         $sum = 0;
     281        $sum = 0;
    282282        switch ($key) {
    283283        case 'items' :
     
    285285            break;
    286286
    287         case 'extended_price' :
     287        case 'extended_price' :
    288288            foreach ($_SESSION['_cart'][$this->_ns]['items'] as $item_id => $specs) {
    289289                $sum += isset($specs[$key]) && is_numeric($specs[$key]) ? $specs[$key] : 0;
Note: See TracChangeset for help on using the changeset viewer.