Only validate grid if existent

This commit is contained in:
phl0
2025-11-12 15:33:40 +01:00
parent 7f38a0c7e8
commit cfa07bd33f

View File

@@ -52,7 +52,7 @@ class Callbook {
}
// qrz.com gives AA00aa if the user deleted his grid from the profile
$this->ci->load->library('qra');
if (!$this->ci->qra->validate_grid($callbook['gridsquare'])) {
if (!array_key_exists('gridsquare', $callbook) || !$this->ci->qra->validate_grid($callbook['gridsquare'])) {
$callbook['gridsquare'] = '';
}
return $callbook;