From e99c7be6b80778e4c3dfa8e58952d01c6b307f40 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Wed, 3 Jan 2024 17:58:23 +0100 Subject: [PATCH] #12034 fixed empty screen in public link --- pandora_console/include/lib/Dashboard/Manager.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pandora_console/include/lib/Dashboard/Manager.php b/pandora_console/include/lib/Dashboard/Manager.php index 720045dccc..08765b5eba 100644 --- a/pandora_console/include/lib/Dashboard/Manager.php +++ b/pandora_console/include/lib/Dashboard/Manager.php @@ -311,6 +311,15 @@ class Manager implements PublicLogin if ($this->dashboardId !== 0) { $this->dashboardFields = $this->get(); + if (is_array($this->dashboardFields) === true && count($this->dashboardFields) === 0) { + db_pandora_audit( + AUDIT_LOG_HACK_ATTEMPT, + 'Trying to access to dashboard that not exist' + ); + include 'general/noaccess.php'; + exit; + } + $this->cells = Cell::getCells($this->dashboardId); }