From 6f597ff7a2646ff127c33f00c94279a106b38359 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Wed, 28 Dec 2022 15:05:20 +0000 Subject: [PATCH] [Widgets] /QSO/{public_slug} Error Message Fixes #1875 providing a more useful error message --- application/controllers/Widgets.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/controllers/Widgets.php b/application/controllers/Widgets.php index 96864075..19bc4e2c 100644 --- a/application/controllers/Widgets.php +++ b/application/controllers/Widgets.php @@ -15,7 +15,11 @@ class Widgets extends CI_Controller { // Can be used to embed last 11 QSOs in a iframe or javascript include. - public function qsos($logbook_slug) { + public function qsos($logbook_slug = null) { + + if($logbook_slug == null) { + show_error('Unknown Public Page, please make sure the public slug is correct.'); + } $this->load->model('logbook_model'); $this->load->model('logbooks_model');