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

APPPATH/views/v_player.php [ 130 ]

125                                         $date_match = strtotime($goal_all_cup['date_begin']);
126                                         $year_match = date("Y", $date_match);
127                                         $month_match = date("m", $date_match);
128                                         $day_match = date("d", $date_match);
129                                         $date_match = $day_match . '-' . $month_match . '-' . $year_match;
130                                         if (in_array($goal_all_cup['k_1_id'], array_keys($clubs))) {
131                                             ?>
132                                             <tr>
133                                                 <td><?= $date_match ?></td>
134                                                 <td>
135                                                     <a href="/<?= Route::get('matchcup')->uri(array('lang' => $lang, 'id' => $goal_all_cup['match_id'])) ?>/"><?= $clubs[$goal_all_cup['k_1_id']]['title'] ?>
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

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