summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Seymour <commit@andrewseymour.co.uk>2011-12-14 16:35:06 +0100
committerAndrew Seymour <commit@andrewseymour.co.uk>2011-12-14 16:35:06 +0100
commit3a67ed15d984a341612af9e1dd9ba52f30d02e89 (patch)
tree520ef3793eab302dcb5162b17c7de58a272c706c
parentf75ec11d7ed0592f930dd3a090db7c1c6d251eed (diff)
Slight syntax change to the Cart class
-rw-r--r--system/libraries/Cart.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/libraries/Cart.php b/system/libraries/Cart.php
index 7f6cdf5dd..717ccd9fb 100644
--- a/system/libraries/Cart.php
+++ b/system/libraries/Cart.php
@@ -505,7 +505,9 @@ class CI_Cart {
{
// reverse the array
$cart = array_reverse($this->_cart_contents);
- } else {
+ }
+ else
+ {
// just added first to last
$cart = $this->_cast_contents;
}