From 2531de8cb0a4d2446b72670ce391e58faccee025 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Tue, 30 Jan 2024 14:58:04 +0100 Subject: [PATCH] #12034 fixed page not access when dashboard is deleted --- pandora_console/include/lib/Dashboard/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/lib/Dashboard/Manager.php b/pandora_console/include/lib/Dashboard/Manager.php index a7df33dce5..946097b207 100644 --- a/pandora_console/include/lib/Dashboard/Manager.php +++ b/pandora_console/include/lib/Dashboard/Manager.php @@ -311,7 +311,7 @@ class Manager implements PublicLogin if ($this->dashboardId !== 0) { $this->dashboardFields = $this->get(); - if (is_array($this->dashboardFields) === true && count($this->dashboardFields) === 0) { + if ($this->deleteDashboard === false && is_array($this->dashboardFields) === true && count($this->dashboardFields) === 0) { db_pandora_audit( AUDIT_LOG_HACK_ATTEMPT, 'Trying to access to dashboard that not exist'