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 dbe30682d0
commit fd15d4e750

View File

@ -612,7 +612,7 @@ class Script
$closeRequired = false; $closeRequired = false;
if ($this->vacation) 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['variables']) $newscripthead .= ',"variables"';
if ($this->extensions['regex'] && $regexused) $newscripthead .= ",\"regex\""; if ($this->extensions['regex'] && $regexused) $newscripthead .= ",\"regex\"";
if ($this->extensions['date']) $newscripthead .= ",\"date\""; if ($this->extensions['date']) $newscripthead .= ",\"date\"";