diff --git a/application/views/activators/index.php b/application/views/activators/index.php index b56259bd..79832e89 100644 --- a/application/views/activators/index.php +++ b/application/views/activators/index.php @@ -102,6 +102,7 @@ function write_activators($activators_array, $vucc_grids, $custom_date_format, $ Count Gridsquares Show QSOs + Show Map '; @@ -112,10 +113,16 @@ function write_activators($activators_array, $vucc_grids, $custom_date_format, $ $grids = $line->grids; $count = $line->count; if (array_key_exists($line->call, $vucc_grids)) { - $grids .= ','.$vucc_grids[$line->call]; + foreach(explode(',', $vucc_grids[$line->call]) as $vgrid) { + if(!strpos($grids, $vgrid)) { + $grids .= ','.$vgrid; + } + } + $grids = str_replace(' ', '', $grids); $grid_array = explode(',', $grids); - array_unique($grid_array, SORT_STRING); + sort($grid_array); $count = count($grid_array); + $grids = implode(', ', $grid_array); } array_push($activators, array($count, $call, $grids)); } @@ -127,6 +134,7 @@ function write_activators($activators_array, $vucc_grids, $custom_date_format, $ '.$line[0].' '.$line[2].' Show + Show '; } echo '';