mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 20:17:14 +01:00
Bugfix when using multidb.conf.php Error when using cronjob # /usr/bin/php8.1 /var/www/html/openxe-v.1.6/cronjobs/starter2.php
This commit is contained in:
parent
b5926ee039
commit
a3c253a13b
@ -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 = [];
|
||||
|
Loading…
Reference in New Issue
Block a user