title: Codeigniter getting non-object error when getting a property of an object
body: <p>I'm trying to get some information of an object.
  When I var_dump it, I get this:</p>
  
  
  
  <pre><code>var_dump($data)
  
  object(stdClass)#44 (3) { 
      ["front_image"]=&gt; string(19) "1424188887front.jpg" 
      ["back_image"]=&gt; string(18) "1424188887back.jpg" 
      ["detail_file"]=&gt; string(16) "1424188887detail.pdf" 
  }
  </code></pre>
  
  <p>I'm trying to get the front image with </p>
  
  <pre><code>echo $data-&gt;front_image;
  </code></pre>
  
  <p>It echos 1424188887front.jpg followed by</p>
  
  <pre><code>A PHP Error was encountered
  
  Severity: Notice
  Message: Trying to get property of non-object
  Filename: test.php  
  Line Number: 198
  </code></pre>
  
  <p>I'm not sure what's going on.
  The information is printed without a problem.</p>