Не могу зайти в контракты к другим игрокам выбивает ошибку
ErrorException [ Fatal Error ]: Cannot use object of type Player2 as array
APPPATH/views/index/team/v_contracts.php [ 48 ]
43 <?=View::factory('index/team/v_players_row', array('player' => $player, 'view' => $view))?>
44 <td>
45 <?if ($can ): ?>
46 <?=Form::select($player->id.'_as', ['Y' => __('First team'), 'T' => __('Farm')], Model::factory('player')->SelectAs($player->id))?>
47 <?else: ?>
48 <?=__($player['sas'])?>
49 <?endif?>
50 </td>
51 <td width="100">
52 <?if ( $can ): ?>
53 <?=implode(', ', Model::factory('team')->p2l($C_Team->id, $player->id))?>
{PHP internal call} » Kohana_Core::shutdown_handler()
Environment