From d4888714dfbfb02b9a0a50ddac16b02c2849c2cc Mon Sep 17 00:00:00 2001 From: Fabian Berg Date: Tue, 7 Jan 2025 09:56:34 +0100 Subject: [PATCH] make it a bit nicer --- application/controllers/Staticmap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/controllers/Staticmap.php b/application/controllers/Staticmap.php index ab9d06b82..4d7002d7e 100644 --- a/application/controllers/Staticmap.php +++ b/application/controllers/Staticmap.php @@ -3,7 +3,7 @@ class Staticmap extends CI_Controller { - public function render($slug = '') { + public function render($slug) { // set to true to remove cached imaged for debugging pruposes $debugging = false; @@ -16,7 +16,7 @@ class Staticmap extends CI_Controller { $this->load->model('visitor_model'); $slug = $this->security->xss_clean($slug); - if ($slug == '') { + if (empty($slug)) { show_404(__("Unknown Public Page.")); } // check if the public slug exists