Prevent leaking of CI-Errors / State 500 when calling function without key

This commit is contained in:
int2001
2024-11-20 17:31:02 +00:00
parent d2caa2859d
commit 0c6774d393

View File

@@ -128,7 +128,7 @@ class API extends CI_Controller {
}
}
function station_info($key) {
function station_info($key = '') {
$this->load->model('api_model');
$this->load->model('stations');
header("Content-type: application/json");