diff options
author | Andrey Andreev <narf@devilix.net> | 2014-02-13 13:26:50 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-02-13 13:26:50 +0100 |
commit | 0bd390c660290b7dc478955da6a8a7fbb3ca9fd6 (patch) | |
tree | cfef14c2deb5fb9f8fc404e1d1a510af9ab8e791 /system/libraries/Cart.php | |
parent | b297d9c955c9737ed3d42bfb84190b0b7b03905e (diff) |
[ci skip] Polish changes from #2874
Diffstat (limited to 'system/libraries/Cart.php')
-rw-r--r-- | system/libraries/Cart.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/system/libraries/Cart.php b/system/libraries/Cart.php index 389b1b77e..5b05974e4 100644 --- a/system/libraries/Cart.php +++ b/system/libraries/Cart.php @@ -61,8 +61,6 @@ class CI_Cart { public $product_name_safe = TRUE; // -------------------------------------------------------------------------- - // Protected variables. Do not change! - // -------------------------------------------------------------------------- /** * Reference to CodeIgniter instance @@ -357,9 +355,9 @@ class CI_Cart { { $items['price'] = (float) $items['price']; } - - // product id & name shouldn't be changed - foreach (array_diff($keys, array('id', 'name')) as $key) + + // product id & name shouldn't be changed + foreach (array_diff($keys, array('id', 'name')) as $key) { $this->_cart_contents[$items['rowid']][$key] = $items[$key]; } |