mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 18:27:16 +00:00
Only validate grid if existent
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user