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

APPPATH/views/v_player.php [ 66 ]

61                                         $year_match = date("Y", $date_match);
62                                         $month_match = date("m", $date_match);
63                                         $day_match = date("d", $date_match);
64                                         $date_match = $day_match . '-' . $month_match . '-' . $year_match;
65                                         if ($year_match != '1970') {
66                                             if (in_array($goal_all['k_1_id'], array_keys($clubs))) {
67                                                 ?>
68                                                 <tr>
69                                                     <td><?= $date_match ?></td>
70                                                     <td>
71                                                         <a href="/<?= Route::get('match')->uri(array('lang' => $lang, 'id' => $goal_all['match_id'])) ?>/"><?= $clubs[$goal_all['k_1_id']]['title'] ?>
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. APPPATH/views/v_player.php [ 66 ] » 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