Added error if no callbook is entered in config

This commit is contained in:
Andreas Kristiansen
2024-11-25 12:41:34 +01:00
parent 8a843f6086
commit a522d3095c

View File

@@ -46,6 +46,9 @@ class Callbook {
}
return $this->hamqth($this->ci->config->item('hamqth_username'), $this->ci->config->item('hamqth_password'), $callsign, $reduced);
break;
default:
$callbook['error'] = 'No callbook defined. Please review configuration.';
return $callbook;
}
}