From b218cd0d15b739569684cdf48dab00c687f86628 Mon Sep 17 00:00:00 2001
From: "alejandro.campos@artica.es" <alejandro.campos@artica.es>
Date: Tue, 11 Oct 2022 13:32:29 +0200
Subject: [PATCH] fix several problems in history db settings

---
 pandora_console/include/lib/Core/Config.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pandora_console/include/lib/Core/Config.php b/pandora_console/include/lib/Core/Config.php
index 00875fd077..6c12b85e0c 100644
--- a/pandora_console/include/lib/Core/Config.php
+++ b/pandora_console/include/lib/Core/Config.php
@@ -93,7 +93,9 @@ final class Config
         }
 
         if (empty($settings) === true) {
-            if ($config['history_db_connection'] !== false) {
+            if (isset($config['history_db_connection']) === true
+                && $config['history_db_connection'] !== false
+            ) {
                 $data = \db_get_all_rows_sql(
                     'SELECT * FROM `tconfig`',
                     false,