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

APPPATH/views/pages/Artistas/galeria.php [ 11 ]

 6 		<section class="artists-gallery-photos">
 7 			<h2 class="title" data-ani-type="fade-top" data-ani-delay=".2"><span><a href="artistas/artista/<?php echo $gallery->artist->slug ?>"><?php echo $gallery->artist->title ?></a></span></h2>
 8 			<h3 data-ani-type="fade-top" data-ani-delay=".2"><?php echo $gallery->title ?></h3>
 9 			<div class="box-gallery-photos" data-ani-type="fade-top" data-ani-delay=".2">
10 				<ul class="<?php echo $gallery->layout ? 'list-artists-layout-1' : 'list-artists' ?>">
11 					<?php foreach ($images as $image): ?>
12 						<?php
13 							$classe = '';
14 							try {
15 								list($width, $height) = getimagesize(Kohana::$config->load('img.storage').$image->file);
16 							}catch(Exception $e){
  1. APPPATH/views/pages/Artistas/galeria.php [ 11 ] » Kohana_Core::error_handler(arguments)

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

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

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

  5. APPPATH/views/shared/template/base.php [ 54 ] » Kohana_View->__toString()

  6. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

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

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

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

  10. MODPATH/template/classes/Kohana/ControllerRoot.php [ 39 ] » Kohana_Response->body(arguments)

  11. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_ControllerRoot->after()

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

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

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

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

  16. DOCROOT/index.php [ 118 ] » Kohana_Request->execute()

Environment