ErrorException [ Warning ]: array_keys() expects parameter 1 to be array, null given

APPPATH/views/v_player.php [ 206 ]

201                                                     <a href="/<?= Route::get('match')->uri(array('lang' => $lang, 'id' => $match['matchId'])) ?>/"><?= $match['home_club_title'] ?>
202                                                         : <?= ($match['guest_club_title']) ?>
203                                                         (<?= $match['home_gol'] ?> : <?= $match['guest_gol'] ?>)
204                                                     </a>
205                                                 </td>
206                                                 <?php if (in_array($match['home_club_id'], array_keys($clubs))) { ?>
207                                                     <td><?= $match['goal_home'] ?></td>
208                                                 <?
209                                                 } else { ?>
210                                                     <td><?= $match['goal_guest'] ?></td>
211                                                 <?
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. APPPATH/views/v_player.php [ 206 ] » array_keys(arguments)

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

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

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

  6. APPPATH/views/v_base.php [ 62 ] » Kohana_View->__toString()

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

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

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

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

  11. APPPATH/classes/Controller/Base.php [ 76 ] » Kohana_Response->body(arguments)

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

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

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

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

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

  17. DOCROOT/index.php [ 117 ] » Kohana_Request->execute()

Environment