title: CodeIgniter not adding items into Cart
body: <p>So, I have This CI code, which for some reason, it doesn't add into the cart, but info side $data does prints out just fine.
  Anybody has any idea what it's happening? It used to work just fine, and I have not touched this function in a while.
  I do have an if statement to check that the parameters are set.</p>
  
  <pre><code>&lt;?php
  /* test data
  $this-&gt;input-&gt;post('product_id') = 1
  $this-&gt;input-&gt;post('name')       = 'ballons'
  $this-&gt;input-&gt;post('qty')        = 10
  $price                           = 9.99
  $this-&gt;input-&gt;post('img')        = 'http://example.com/product_img.jpg'
  $this-&gt;input-&gt;post('special_instructions') = 'long string explenation'
  $this-&gt;input-&gt;post('options')    = array('color' =&gt; 'red')
  */
  // set cart's info
  $data = array(
  'id'        =&gt; $this-&gt;input-&gt;post('product_id'),
  'name'      =&gt; $this-&gt;input-&gt;post('name'),
  'qty'       =&gt; $this-&gt;input-&gt;post('qty'),
  'price'     =&gt; $price,
   'img'      =&gt; $this-&gt;input-&gt;post('img')
  );
  
  // check if special instructions are set
  if($this-&gt;input-&gt;post('special_instructions'))
      $data['special_instructions'] = $this-&gt;input-&gt;post('special_instructions');
  
  // check if options are available
  if($this-&gt;input-&gt;post('options'))
      $data['options'] = array('type' =&gt; $this-&gt;input-&gt;post('options'));
  
  
  // add data to cart
  $this-&gt;cart-&gt;insert($data);
  
  die(print_r($data).$this-&gt;cart-&gt;contents());
  ?&gt;
  </code></pre>