title: Wordpress Invalid argument
body: <p>"Warning: : Invalid argument supplied for foreach() in ..\Menu\Menu.php on line 363 in a site.  It reads as follows.  </p>
  
  <pre><code>foreach($results['result'] as $result)
          {
              $thumbnail = apply_filters('jnews_image_lazy_owl', $result-&gt;ID, 'jnews-360x180');
              $additional_class = (!has_post_thumbnail( $result-&gt;ID )) ? 'no_thumbnail' : '';
  
              $article_output .=
                  "&lt;div class=\"jeg_newsfeed_item {$additional_class}\"&gt;
                      &lt;div class=\"jeg_thumb\"&gt;
                          " . jnews_edit_post( $result-&gt;ID ) . "
                          &lt;a href=\"" . get_the_permalink($result) . "\"&gt;" . $thumbnail . "&lt;/a&gt;
                      &lt;/div&gt;
                      &lt;h3 class=\"jeg_post_title\"&gt;&lt;a href=\"" . get_the_permalink($result) . "\"&gt;" . get_the_title($result) . "&lt;/a&gt;&lt;/h3&gt;
                  &lt;/div&gt;";
  
          }
  
  
          return $article_output;
  </code></pre>