summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-02-13 13:26:50 +0100
committerAndrey Andreev <narf@devilix.net>2014-02-13 13:26:50 +0100
commit0bd390c660290b7dc478955da6a8a7fbb3ca9fd6 (patch)
treecfef14c2deb5fb9f8fc404e1d1a510af9ab8e791 /system
parentb297d9c955c9737ed3d42bfb84190b0b7b03905e (diff)
[ci skip] Polish changes from #2874
Diffstat (limited to 'system')
-rw-r--r--system/libraries/Cart.php8
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];
}