ErrorException [ Warning ]: Invalid argument supplied for foreach()

APPPATH/views/news_singola.php [ 98 ]

 93 <h4 style="margin-bottom:20px;"><?PHP echo I18n::get('Articoli correlati') ?></h4>
 94 	
 95 							<div class="row">
 96 <?PHP 
 97 
 98 foreach($correlati as $item): 
 99 
100 ?>
101 <!-- singolo post -->
102 <div class="col-md-4 blog-correlati"><a href="/blog/<?PHP  echo $item->id_blog."-".URL::title($item->titolo); ?>">
103 <figure><img class="img-fluid" src="<?PHP echo ORM::factory('Blog')->get_foto_principale($item->id_blog, 'medium', 'it'); ?>" alt="<?PHP echo ORM::factory('Blog')->get_didascalia_foto_principale($item->id_blog, Helper_locale::get()); ?>"></figure>
  1. APPPATH/views/news_singola.php [ 98 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  3. SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)

  4. SYSPATH/classes/Kohana/View.php [ 236 ] » Kohana_View->render()

  5. SYSPATH/classes/Kohana/Response.php [ 160 ] » Kohana_View->__toString()

  6. APPPATH/classes/Controller/Home.php [ 2938 ] » Kohana_Response->body(arguments)

  7. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Home->action_news_singola()

  8. {PHP internal call} » Kohana_Controller->execute()

  9. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)

  10. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  11. SYSPATH/classes/Kohana/Request.php [ 993 ] » Kohana_Request_Client->execute(arguments)

  12. DOCROOT/index.php [ 119 ] » Kohana_Request->execute()

Environment