Cloudlog icon indicating copy to clipboard operation
Cloudlog copied to clipboard

SQL fails when dxcc is null

Open sipsmi opened this issue 1 year ago • 1 comments

https://github.com/magicbug/Cloudlog/blob/c874ec994c280ac35bde7989ee6f166c3b1caa2b/application/models/Logbook_model.php#L4337

This has been discussed, sometimes when typing in a callsign when login a QSO the lookup fails and the log shows an error since the call to get_entity can be null for unworked callsigns.

I work around this with if ( ! isset($dxcc) || empty($dxcc)) { return '' ; }

as the first line in the get_entity function.

It seems a safe thing to do - can it be added?

Thanks

sipsmi avatar Jul 11 '24 08:07 sipsmi