ErrorException [ Warning ]: Trying to access array offset on value of type null

APPPATH/views/fotogalerie/main.php [ 17 ]

12 
13 if (!empty($items)) {
14     echo "<div class='photogallery'>\n";
15 
16     foreach ($items as $item) {
17     	$link = HTML::image("/gallery/fit-410/{$item['ico']['filename']}", array('alt' => $item['title']));
18         $link .= "<div><strong>{$item['title']}</strong>\n";
19 
20         if (empty($item['date_to'])) {
21             $link .= date('j.n.Y', strtotime($item['date_from']));
22         } else {
  1. APPPATH/views/fotogalerie/main.php [ 17 ]» 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. APPPATH/views/template.php [ 55 ]» Kohana_View->__toString()

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

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

  8. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ]» Kohana_View->render()

  9. SYSPATH/classes/Controller/Resyst/Pagebase.php [ 371 ]» Kohana_Controller_Template->after()

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

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

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

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

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

  15. DOCROOT/index.php [ 144 ]» Kohana_Request->execute()

Environment