commit | 9c86ce5ca11c2d7471d016a7195254c1934472e2 | [log] [tgz] |
---|---|---|
author | Rick Ellis <rick.ellis@ellislab.com> | Tue Feb 17 19:54:14 2009 +0000 |
committer | Rick Ellis <rick.ellis@ellislab.com> | Tue Feb 17 19:54:14 2009 +0000 |
tree | 388730370a1e9a0d157dc5c6233949cf08446b5d | |
parent | c7d12d369209bd9c7abba8e6536e3a7fe66ec172 [diff] [blame] |
Updated the destroy function to only remove the cart session and not kill the general session data
diff --git a/system/libraries/Cart.php b/system/libraries/Cart.php index a0b782b..61223c5 100644 --- a/system/libraries/Cart.php +++ b/system/libraries/Cart.php
@@ -517,7 +517,7 @@ $this->_cart_contents['cart_total'] = 0; $this->_cart_contents['total_items'] = 0; - $this->CI->session->sess_destroy(); + $this->CI->session->unset_userdata('cart_contents'); }