Skip to content
Snippets Groups Projects
Commit c6d545d0 authored by jurgenhaas's avatar jurgenhaas
Browse files

mobimo/support#2982 Optimize crontab handling in production mode

parent bf2491cc
No related branches found
No related tags found
1 merge request!7Merging develop into main
Pipeline #521854 passed
......@@ -515,7 +515,7 @@ class Handler extends BaseHandler {
'condition' => $this->config->readValue(['backup', 'enable']),
];
foreach ($this->config->readValue('crontabs') ?? [] as $user => $tasks) {
if (empty($tasks)) {
if (empty($tasks) || !is_array($tasks)) {
$files[$user] = [
'dest' => $projectRoot . '/crontabs',
'delete' => TRUE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment