Handle absent colors in award maps

This commit is contained in:
phl0
2025-12-10 12:40:59 +01:00
parent 76492ad000
commit 6de5cff097
9 changed files with 73 additions and 41 deletions

View File

@@ -20,7 +20,7 @@ class Awards extends CI_Controller {
if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('error', __("You're not allowed to do that!")); redirect('dashboard'); }
$map_custom = json_decode($this->optionslib->get_map_custom());
$this->user_map_color_qso = $map_custom->qso->color;
$this->user_map_color_qso = $map_custom->qso->color ?? '';
$this->user_map_color_qsoconfirm = $map_custom->qsoconfirm->color ?? '';
$this->user_map_color_unworked = $map_custom->unworked->color ?? '';
}