From a3c253a13b5a89557d1c534cc679b348482c6975 Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Fri, 2 Dec 2022 12:22:23 +0000 Subject: [PATCH] Bugfix when using multidb.conf.php Error when using cronjob # /usr/bin/php8.1 /var/www/html/openxe-v.1.6/cronjobs/starter2.php --- classes/Core/LegacyConfig/MultiDbArrayHydrator.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/classes/Core/LegacyConfig/MultiDbArrayHydrator.php b/classes/Core/LegacyConfig/MultiDbArrayHydrator.php index 653812be..e701f6ff 100644 --- a/classes/Core/LegacyConfig/MultiDbArrayHydrator.php +++ b/classes/Core/LegacyConfig/MultiDbArrayHydrator.php @@ -48,7 +48,11 @@ final class MultiDbArrayHydrator $description = !empty($item['description']) ? $item['description'] : $defaultConfig->WFdbname; // Cronjobs nur aktivieren, wenn Einstellung vorhanden und gesetzt (Default `false`). - $cronjobsActive = (int)$item['cronjob'] === 1; + if (array_key_exists('cronjob',$item)) { + $cronjobsActive = (int)$item['cronjob'] === 1; + } else { + $cronjobsActive = false; + } if(!empty($item['dbname']) && $defaultConfig->WFdbname === $item['dbname']) { $item = [];