Skip to content

Commit a0a21e2

Browse files
authored
contrib: fix creating cron jobs first time
1 parent 94b1bcb commit a0a21e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/crontab.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
// Create the section
6868
$cronJobs[] = $sectionStart;
69-
$cronJobs += $cronJobsLocal;
69+
$cronJobs = [...$cronJobs, ...$cronJobsLocal];
7070
$cronJobs[] = $sectionEnd;
7171
writeln("Crontab: Found no section, created the section with configured jobs");
7272
} else {

0 commit comments

Comments
 (0)