fix error setting vacation notice (without rules):

updateScript: putscript failed: mail: line 3: error: unexpected ',' found at (the presumed) end of file. mail: error: parse failed.
This commit is contained in:
ralf 2023-12-08 22:54:09 +02:00
parent d0cb94b6c7
commit b8b5089b77

View File

@ -612,7 +612,7 @@ class Script
$closeRequired = false;
if ($this->vacation)
{
$newscripthead .= (string)$this->vacation['days'] === '0' ? ',"vacation-seconds"' : ',"vacation"';
$newscripthead .= 'require['.((string)$this->vacation['days'] === '0' ? '"vacation-seconds"' : '"vacation"');
if ($this->extensions['variables']) $newscripthead .= ',"variables"';
if ($this->extensions['regex'] && $regexused) $newscripthead .= ",\"regex\"";
if ($this->extensions['date']) $newscripthead .= ",\"date\"";