Commit c6780914 by tetiana yaremko

cart session fixed

parent 839a5e20
Showing with 1 additions and 1 deletions
...@@ -50,7 +50,7 @@ class Auth extends CI_Controller ...@@ -50,7 +50,7 @@ class Auth extends CI_Controller
$user_role = $this->auth->user_role(); $user_role = $this->auth->user_role();
$new_cart = array(); $new_cart = array();
foreach ($this->cart->contents() as $content) { foreach ($this->cart->contents() as $content) {
$cart = array( $cart = (object) array(
'id' => $content->id, 'id' => $content->id,
'qty' => $content->qty, 'qty' => $content->qty,
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment