mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
If operator isn't defined at record a php came up
This commit is contained in:
@@ -237,7 +237,7 @@ class API extends CI_Controller {
|
||||
}
|
||||
// in case the provided op call is the same as the clubstation callsign, we need to use the creator of the API key as the operator
|
||||
$recorded_operator = $record['operator'] ?? '';
|
||||
if ($real_operator != null && ($record['operator'] == $record['station_callsign']) || ($recorded_operator == '')) {
|
||||
if (key_exists('operator',$record) && $real_operator != null && ($record['operator'] == $record['station_callsign']) || ($recorded_operator == '')) {
|
||||
$record['operator'] = $real_operator;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user