title: Invalid argument supplied for foreach() where is mistake?
body: <blockquote>
  <p>A PHP Error was encountered</p>
  <p>Severity: Warning</p>
  <p>Message: Invalid argument supplied for foreach()</p>
  <p>Filename: views/content_view.php</p>
  <p>Line Number: 8</p>
  </blockquote>
  <p>Model:</p>
  <pre><code>&lt;?php
  if ( ! defined('BASEPATH')) exit ('No direct script access allowed');
    class Mat_model extends CI_Model
    {
      public function get_mat()
      {
        $query = $this-&gt;db-&gt;get('materials');
        $query-&gt;result_array(); 
      }
    }
  ?&gt;
  </code></pre>
  <p>View:</p>
  <pre><code>&lt;div id=&quot;breadcrumb&quot;&gt;&lt;a href=&quot;&quot;&gt;Home&lt;/a&gt; &amp;raquo; &lt;a href=&quot;&quot;&gt;Somewhere&lt;/a&gt;&lt;/div&gt;
      &lt;div id=&quot;right&quot;&gt;
        &lt;h1&gt;Lorem Ipsum Dolor Set Amir&lt;/h1&gt;
        &lt;span class=&quot;postinfo&quot;&gt; Posted by &lt;a href=&quot;&quot;&gt;Dylan&lt;/a&gt; on 07.09.06&lt;/span&gt;
        &lt;p&gt;Lorem ipsum dolor set amir tolos and tacos for plenty to see. jack is the orange sub marine, by any means I found my plans. &lt;/p&gt;
        &lt;hr /&gt;
        &lt;h1&gt;
        &lt;?php foreach ($news as $one):?&gt;
        &lt;?if(is_empty($one))?&gt;
        &lt;?=$one['author']?&gt;
        &lt;?php endforeach; ?&gt;
        &lt;/h1&gt;
        &lt;span class=&quot;postinfo&quot;&gt; Posted by &lt;a href=&quot;&quot;&gt;Dylan&lt;/a&gt; on 07.09.06&lt;/span&gt;
        &lt;p&gt;Lorem ipsum dolor set amir &lt;a href=&quot;&quot;&gt;tolos&lt;/a&gt; and tacos for plenty to see. jack is the orange sub marine, by any means I found my plans. &lt;/p&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  <p>Controller:</p>
  <pre><code>&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  
  class Welcome extends CI_Controller {
      public function index()
      {
          $this-&gt;load-&gt;view('header_view');
          $this-&gt;load-&gt;view('menu_view');
          $this-&gt;load-&gt;view('categories_view');
          $this-&gt;load-&gt;view('useful_sites_view');
          $this-&gt;load-&gt;model('mat_model');
          $data = array();
          $data['news'] = $this-&gt;mat_model-&gt;get_mat(); 
          $this-&gt;load-&gt;view('content_view',$data);
          $this-&gt;load-&gt;view('footer_view');
      }   
  }
  ?&gt;
  </code></pre>
  <p>So where is my mistake? I can't find it.</p>