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

APPPATH/views/theme/webshop/sebsel_swe/template/categories_box.php [ 18 ]

13 	
14 	?>
15 	<div id="categories_menu_progress"></div>
16   <ul class="">
17   
18     <?php $n = 0; foreach ($offers_categories as $category){ ?>
19       <li class="<?php echo ($current_categories != NULL && in_array($category->pk(), $current_categories))?'active':'';?>">
20       	<?php 
21       	 echo Form::checkbox('category[]', $category->pk(), ($current_categories != NULL && in_array($category->pk(), $current_categories)), array('id' => 'offer_category_'.$category->pk()));
22       	 echo Form::label('offer_category_'.$category->pk(), $category->name);
23       	?>
  1. APPPATH/views/theme/webshop/sebsel_swe/template/categories_box.php [ 18 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)

  3. SYSPATH/classes/kohana/view.php [ 343 ] » Kohana_View::capture(arguments)

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

  5. APPPATH/views/theme/webshop/sebsel_swe/out/page.php [ 16 ] » Kohana_View->__toString()

  6. SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)

  7. SYSPATH/classes/kohana/view.php [ 343 ] » Kohana_View::capture(arguments)

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

  9. APPPATH/views/theme/webshop/sebsel_swe/template/index.php [ 66 ] » Kohana_View->__toString()

  10. SYSPATH/classes/kohana/view.php [ 61 ] » include(arguments)

  11. SYSPATH/classes/kohana/view.php [ 343 ] » Kohana_View::capture(arguments)

  12. SYSPATH/classes/kohana/view.php [ 228 ] » Kohana_View->render()

  13. APPPATH/bootstrap.php [ 355 ] » Kohana_View->__toString()

  14. DOCROOT/index.php [ 135 ] » require(arguments)

Environment