Fixes Bug where Modes are not shown correct

This commit is contained in:
int2001
2024-12-03 09:38:03 +00:00
parent e937c6a9f4
commit 318f94f007
2 changed files with 24 additions and 0 deletions

View File

@@ -122,6 +122,8 @@ class Statistics extends CI_Controller {
$modestats[$i++]['total'] = $this->logbook_model->total_cw($yr);
$modestats[$i]['mode'] = 'fm';
$modestats[$i++]['total'] = $this->logbook_model->total_fm($yr);
$modestats[$i]['mode'] = 'others';
$modestats[$i++]['total'] = $this->logbook_model->total_others($yr);
$modestats[$i]['mode'] = 'digi';
$modestats[$i]['total'] = $this->logbook_model->total_digi($yr);
usort($modestats, fn($a, $b) => $b['total'] <=> $a['total']);