Prevent fetching image from non-existent qrz.com entry

This commit is contained in:
phl0
2023-11-15 08:58:42 +01:00
parent d22747de67
commit 0025ff8fcc

View File

@@ -168,7 +168,7 @@ class Logbook extends CI_Controller {
$return['confirmed'] = $this->confirmed_grid_before($return['callsign_qra'], $type, $band, $mode);
if ($this->session->userdata('user_show_profile_image')) {
if (isset($callbook)) {
if (isset($callbook) && isset($callbook['image'])) {
if ($callbook['image'] == "") {
$return['image'] = "n/a";
} else {