wip
This commit is contained in:
1 parent
1a4739eb4b
commit
766ac81698
1 file changed
+6
-7
@@ -374,7 +374,6 @@ class PlayerPropsDrop extends Widget
|
||||
$tmp['id'] = $ss_player_id;
|
||||
$tmp['name'] = $val->details->player_name;
|
||||
|
||||
$tmp['total_events'] = $val->total_events;
|
||||
$tmp['id_team'] = $team_id;
|
||||
$tmp['asp_team'] = $asp_team;
|
||||
$tmp['player_count_without_gk'] = $count_player;
|
||||
@@ -548,12 +547,12 @@ class PlayerPropsDrop extends Widget
|
||||
foreach ($results as $key => $result) {
|
||||
if ((int) $record['id'] == (int) $result['id']) {
|
||||
$this->players[$k]['active'] = $result['active'];
|
||||
$this->players[$k]['gls'] = $result['total_events'] ? number_format($result['asp_player_goals'], 3) : 0;
|
||||
$this->players[$k]['fls'] = $result['total_events'] ? number_format($result['asp_player_fouls'], 3) : 0;
|
||||
$this->players[$k]['ofs'] = $result['total_events'] ? number_format($result['asp_player_offsides'], 3) : 0;
|
||||
$this->players[$k]['snt'] = $result['total_events'] ? number_format($result['asp_player_total_shots'], 3) : 0;
|
||||
$this->players[$k]['tsh'] = $result['total_events'] ? number_format($result['asp_player_shots_on_target'], 3) : 0;
|
||||
$this->players[$k]['crd'] = $result['total_events'] ? number_format($result['asp_player_cards'], 3) : 0;
|
||||
$this->players[$k]['gls'] = number_format($result['asp_player_goals'], 3);
|
||||
$this->players[$k]['fls'] = number_format($result['asp_player_fouls'], 3);
|
||||
$this->players[$k]['ofs'] = number_format($result['asp_player_offsides'], 3);
|
||||
$this->players[$k]['snt'] = number_format($result['asp_player_total_shots'], 3);
|
||||
$this->players[$k]['tsh'] = number_format($result['asp_player_shots_on_target'], 3);
|
||||
$this->players[$k]['crd'] = number_format($result['asp_player_cards'], 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user