From 29453cdc1424c81616ef32fa12c7e5b11a3f0039 Mon Sep 17 00:00:00 2001 From: Ivan Tcholakov Date: Fri, 23 Nov 2012 13:54:28 +0200 Subject: 3.0.0-dev: Fixing the issue #2023. CI_Cart initialization: Session data presense should be tested against NULL, not FALSE. --- system/libraries/Cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/libraries/Cart.php') diff --git a/system/libraries/Cart.php b/system/libraries/Cart.php index 035a6a42b..79c2b8cdc 100644 --- a/system/libraries/Cart.php +++ b/system/libraries/Cart.php @@ -99,7 +99,7 @@ class CI_Cart { // Grab the shopping cart array from the session table $this->_cart_contents = $this->CI->session->userdata('cart_contents'); - if ($this->_cart_contents === FALSE) + if ($this->_cart_contents === NULL) { // No cart exists so we'll set some base values $this->_cart_contents = array('cart_total' => 0, 'total_items' => 0); -- cgit v1.2.3-24-g4f1b